diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2014-01-12 12:27:06 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-01-12 12:29:24 +0100 |
commit | a2c316288c8f3714e57dc1037d7a993a2088ab18 (patch) | |
tree | ee4af0b96a5bc0e55b92c8d76465b333a698a260 /pkgs/build-support | |
parent | 51713fbbfcaf819f176df8f3ce75f57880aeb690 (diff) | |
parent | a0070a9157d7d145eed22160cec2562d24032013 (diff) |
Merge master into stdenv-updates
Conflicts: pkgs/development/lisp-modules/stumpwm/default.nix (auto-solved) pkgs/top-level/all-packages.nix (trivial)
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/fetchbower/default.nix | 9 | ||||
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 6 | ||||
-rw-r--r-- | pkgs/build-support/vm/default.nix | 12 |
3 files changed, 21 insertions, 6 deletions
diff --git a/pkgs/build-support/fetchbower/default.nix b/pkgs/build-support/fetchbower/default.nix new file mode 100644 index 0000000000000..11af6dbedf134 --- /dev/null +++ b/pkgs/build-support/fetchbower/default.nix @@ -0,0 +1,9 @@ +{ stdenv, fetch-bower, git }: name: version: target: outputHash: stdenv.mkDerivation { + name = "${name}-${version}"; + realBuilder = "${fetch-bower}/bin/fetch-bower"; + args = [ name version target ]; + outputHashMode = "recursive"; + outputHashAlgo = "sha256"; + inherit outputHash; + PATH = "${git}/bin"; +} diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 0afae009dc572..8d0de055c756f 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -148,6 +148,12 @@ init_submodules(){ git config -f .gitmodules --get-regexp submodule\.[^.]*\.path | sed -n "s,^\(.*\)\.path $dir\$,\\1,p") local url=$(git config -f .gitmodules --get ${name}.url); + + # Get Absolute URL if we have a relative URL + if ! echo "$url" | grep '^[a-zA-Z]\+://' >/dev/null 2>&1; then + url="$(git config --get remote.origin.url)/$url" + fi + clone "$dir" "$url" "$hash" ""; done; } diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index 0296c434d6f66..4c97da91fd1f6 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -1467,22 +1467,22 @@ rec { debian70x86_64 = debian7x86_64; debian7i386 = { - name = "debian-7.2-wheezy-i386"; - fullName = "Debian 7.2 Wheezy (i386)"; + name = "debian-7.3-wheezy-i386"; + fullName = "Debian 7.3 Wheezy (i386)"; packagesList = fetchurl { url = mirror://debian/dists/wheezy/main/binary-i386/Packages.bz2; - sha256 = "2e80242e323f233c40b3020b0f1a57d12df8a120ee82af88ff7032ba4688f97d"; + sha256 = "037637520ce371a50beb5446fd27a731f30b51bc362c2f4a5dcfce9c7e30ffb6"; }; urlPrefix = mirror://debian; packages = commonDebianPackages; }; debian7x86_64 = { - name = "debian-7.2-wheezy-amd64"; - fullName = "Debian 7.2 Wheezy (amd64)"; + name = "debian-7.3-wheezy-amd64"; + fullName = "Debian 7.3 Wheezy (amd64)"; packagesList = fetchurl { url = mirror://debian/dists/wheezy/main/binary-amd64/Packages.bz2; - sha256 = "adfc4cd3d3b855c73c9e2e12163a33c193f98c9bad25765080fa6136378a6e3b"; + sha256 = "c2ed55a2a263d482826c934b97ad910984fa5695ab1c480841741b828d0590a5"; }; urlPrefix = mirror://debian; packages = commonDebianPackages; |