diff options
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/ammonite/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/tools/build-managers/kati/default.nix | 26 | ||||
-rw-r--r-- | pkgs/development/tools/build-managers/kati/version.patch | 19 | ||||
-rw-r--r-- | pkgs/development/tools/google-app-engine-go-sdk/default.nix | 14 | ||||
-rw-r--r-- | pkgs/development/tools/quilt/default.nix | 10 | ||||
-rw-r--r-- | pkgs/development/tools/vagrant/default.nix | 12 | ||||
-rw-r--r-- | pkgs/development/tools/wiggle/default.nix | 43 |
7 files changed, 108 insertions, 20 deletions
diff --git a/pkgs/development/tools/ammonite/default.nix b/pkgs/development/tools/ammonite/default.nix index 9f791db50472..4f253c061863 100644 --- a/pkgs/development/tools/ammonite/default.nix +++ b/pkgs/development/tools/ammonite/default.nix @@ -2,12 +2,12 @@ stdenv.mkDerivation rec { name = "ammonite-${version}"; - version = "0.9.3"; + version = "0.9.5"; scalaVersion = "2.12"; src = fetchurl { url = "https://github.com/lihaoyi/Ammonite/releases/download/${version}/${scalaVersion}-${version}"; - sha256 = "1s62idj8lg2g5kz325kqjmyks7ghhl5nzc4snji25qkgxirpibpl"; + sha256 = "1ni829qpdm5wflc1n827b9ywpv836r2068rmj9yd2nyh8b6q2him"; }; propagatedBuildInputs = [ jre ] ; diff --git a/pkgs/development/tools/build-managers/kati/default.nix b/pkgs/development/tools/build-managers/kati/default.nix new file mode 100644 index 000000000000..7b5dc2b79374 --- /dev/null +++ b/pkgs/development/tools/build-managers/kati/default.nix @@ -0,0 +1,26 @@ +{ fetchgit, stdenv }: + +stdenv.mkDerivation rec { + name = "kati-unstable-${version}"; + version = "2017-05-23"; + rev = "2dde61e46ab789f18956ff3b7c257dd8eb97993f"; + + src = fetchgit { + inherit rev; + url = "https://github.com/google/kati.git"; + sha256 = "1das1fvycra546lmh72cr5qpgblhbzqqy7gfywiijjgx160l75vq"; + }; + + patches = [ ./version.patch ]; + + installPhase = '' + install -D ckati $out/bin/ckati + ''; + + meta = { + description = "An experimental GNU make clone"; + homepage = "https://github.com/google/kati"; + platforms = stdenv.lib.platforms.all; + license = stdenv.lib.licenses.asl20; + }; +} diff --git a/pkgs/development/tools/build-managers/kati/version.patch b/pkgs/development/tools/build-managers/kati/version.patch new file mode 100644 index 000000000000..1821ac6bbb73 --- /dev/null +++ b/pkgs/development/tools/build-managers/kati/version.patch @@ -0,0 +1,19 @@ +diff --git a/Makefile.ckati b/Makefile.ckati +index e4067bb..15518f3 100644 +--- a/Makefile.ckati ++++ b/Makefile.ckati +@@ -102,14 +102,8 @@ $(KATI_CXX_TEST_EXES): $(KATI_BIN_PATH)/%: $(KATI_INTERMEDIATES_PATH)/%.o + $(KATI_LD) $^ -o $@ $(KATI_LIBS) + + # Rule to generate version.cc +-KATI_GIT_DIR := $(shell git -C $(KATI_SRC_PATH) rev-parse --show-toplevel) +-ifneq ($(KATI_GIT_DIR),) +-KATI_VERSION_DEPS := $(KATI_GIT_DIR)/.git/HEAD $(KATI_GIT_DIR)/.git/index +-KATI_VERSION := $(shell git -C $(KATI_GIT_DIR) rev-parse HEAD) +-else + KATI_VERSION_DEPS := + KATI_VERSION := unknown +-endif + $(KATI_INTERMEDIATES_PATH)/version.cc: $(KATI_VERSION_DEPS) + @mkdir -p $(dir $@) + echo '// +build ignore' > $@ diff --git a/pkgs/development/tools/google-app-engine-go-sdk/default.nix b/pkgs/development/tools/google-app-engine-go-sdk/default.nix index b95906d20027..27ad4c996ce8 100644 --- a/pkgs/development/tools/google-app-engine-go-sdk/default.nix +++ b/pkgs/development/tools/google-app-engine-go-sdk/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchzip, python27, python27Packages }: +{ stdenv, fetchzip, python27, python27Packages, makeWrapper }: -assert stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin"; +with python27Packages; stdenv.mkDerivation rec { name = "google-app-engine-go-sdk-${version}"; @@ -17,9 +17,7 @@ stdenv.mkDerivation rec { sha256 = "18hgl4wz3rhaklkwaxl8gm70h7l8k225f86da682kafawrr8zhv4"; }; - buildInputs = with python27Packages; [ - (python27.withPackages(ps: [ cffi cryptography pyopenssl ])) - ]; + buildInputs = [python27 makeWrapper]; installPhase = '' mkdir -p $out/bin $out/share/ @@ -27,7 +25,9 @@ stdenv.mkDerivation rec { # create wrappers with correct env for i in goapp appcfg.py; do - ln -s "$out/share/go_appengine/$i" "$out/bin/$i" + makeWrapper "$out/share/go_appengine/$i" "$out/bin/$i" \ + --prefix PATH : "${python27}/bin" \ + --prefix PYTHONPATH : "$(toPythonPath ${cffi}):$(toPythonPath ${cryptography}):$(toPythonPath ${pyopenssl})" done ''; @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { version = version; homepage = "https://cloud.google.com/appengine/docs/go/"; license = licenses.asl20; - platforms = with platforms; linux ++ darwin; + platforms = ["x86_64-linux" "x86_64-darwin"]; maintainers = with maintainers; [ lufia ]; }; } diff --git a/pkgs/development/tools/quilt/default.nix b/pkgs/development/tools/quilt/default.nix index 1fd70730265a..fe6aeb3fa6e1 100644 --- a/pkgs/development/tools/quilt/default.nix +++ b/pkgs/development/tools/quilt/default.nix @@ -1,13 +1,12 @@ -{ stdenv, fetchurl, pkgs}: - -with pkgs; +{ stdenv, fetchurl, makeWrapper, bash, perl, diffstat, diffutils, patch, findutils }: stdenv.mkDerivation rec { - name = "quilt-0.63"; + + name = "quilt-0.65"; src = fetchurl { url = "mirror://savannah/quilt/${name}.tar.gz"; - sha256 = "2846788221aa8844c54f10239c7cbc5e88031859162bcc285449446c3cfffe52"; + sha256 = "06b816m2gz9jfif7k9v2hrm7fz76zjg5pavf7hd3ifybwn4cgjzn"; }; buildInputs = [ makeWrapper perl bash diffutils patch findutils diffstat ]; @@ -31,4 +30,5 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.gpl2Plus; platforms = stdenv.lib.platforms.all; }; + } diff --git a/pkgs/development/tools/vagrant/default.nix b/pkgs/development/tools/vagrant/default.nix index 659c831bbe3c..557d1fde79d5 100644 --- a/pkgs/development/tools/vagrant/default.nix +++ b/pkgs/development/tools/vagrant/default.nix @@ -2,7 +2,7 @@ , libxml2, libxslt, makeWrapper, p7zip, xar, gzip, cpio }: let - version = "1.9.1"; + version = "1.9.5"; rake = buildRubyGem { inherit ruby; gemName = "rake"; @@ -13,16 +13,16 @@ let url = if stdenv.isLinux then "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_${arch}.deb" else if stdenv.isDarwin - then "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}.dmg" + then "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_${arch}.dmg" else "system ${stdenv.system} not supported"; sha256 = { - "x86_64-linux" = "0l1if9c4s4wkbi8k00pl7x00lil21izrd8wb9nv2b5q4gqidc1nh"; - "i686-linux" = "1789wjwcpgw3mljl49c8v5kycisay684gyalkkvd06928423y9zb"; - "x86_64-darwin" = "1xrfq1a0xyifkhhjnpm6wsnms9w8c9q5rd2qqn4sm5npl7viy68p"; + "x86_64-linux" = "16ijzaacfbqrgh561bf51747d2rv8kydgs14dfdr572qi0f88baw"; + "i686-linux" = "0lvkb4k0a34a8hzlsi0apf056rhyprh5w0gn16d0n2ijnaf9j2yk"; + "x86_64-darwin" = "070mrczsx1j0jl9sx6963l3hrk9anqa13r008wk1d22d25xj25mc"; }."${stdenv.system}" or (throw "system ${stdenv.system} not supported"); - arch = builtins.replaceStrings ["-linux"] [""] stdenv.system; + arch = builtins.replaceStrings ["-linux" "-darwin"] ["" ""] stdenv.system; in stdenv.mkDerivation rec { name = "vagrant-${version}"; diff --git a/pkgs/development/tools/wiggle/default.nix b/pkgs/development/tools/wiggle/default.nix new file mode 100644 index 000000000000..5a97eb09e4be --- /dev/null +++ b/pkgs/development/tools/wiggle/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, ncurses, groff }: + +stdenv.mkDerivation { + + name = "wiggle-1.0"; + + src = fetchurl { + url = "https://github.com/neilbrown/wiggle/archive/v1.0.tar.gz"; + sha256 = "0552dkdvl001b2jasj0jwb69s7zy6wbc8gcysqj69b4qgl9c54cs"; + }; + + buildInputs = [ ncurses groff ]; + + configurePhase = '' + makeFlagsArray=( CFLAGS="-I. -O3" + INSTALL="install" + BINDIR="$out/bin" + MANDIR="$out/share/man" + ) + patchShebangs . + ''; + + meta = { + homepage = http://blog.neil.brown.name/category/wiggle/; + description = "Tool for applying patches with conflicts"; + + longDescription = '' + Wiggle applies patches to a file in a similar manner to the patch(1) + program. The distinctive difference is, however, that wiggle will + attempt to apply a patch even if the "before" part of the patch doesn't + match the target file perfectly. This is achieved by breaking the file + and patch into words and finding the best alignment of words in the file + with words in the patch. Once this alignment has been found, any + differences (word-wise) in the patch are applied to the file as best as + possible. Also, wiggle will (in some cases) detect changes that have + already been applied, and will ignore them. + ''; + + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.all; + }; + +} |