diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-06-12 11:21:20 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-06-12 11:21:20 +0000 |
commit | 0530f43655c5c48abe279df6c8c5dd32ea1e795a (patch) | |
tree | 6f98f31dfa4faee726f2e1f78d0d3485dd14e8f9 /pkgs/build-support/fetchhg | |
parent | 9ffa9fc87fd72dac188a085a154284b1de41c1b2 (diff) | |
download | nixpkgs-0530f43655c5c48abe279df6c8c5dd32ea1e795a.tar nixpkgs-0530f43655c5c48abe279df6c8c5dd32ea1e795a.tar.gz nixpkgs-0530f43655c5c48abe279df6c8c5dd32ea1e795a.tar.bz2 nixpkgs-0530f43655c5c48abe279df6c8c5dd32ea1e795a.tar.lz nixpkgs-0530f43655c5c48abe279df6c8c5dd32ea1e795a.tar.xz nixpkgs-0530f43655c5c48abe279df6c8c5dd32ea1e795a.tar.zst nixpkgs-0530f43655c5c48abe279df6c8c5dd32ea1e795a.zip |
Updating go, and making the go expression work in both i686-linux and x86_64-linux.
svn path=/nixpkgs/trunk/; revision=22230
Diffstat (limited to 'pkgs/build-support/fetchhg')
-rw-r--r-- | pkgs/build-support/fetchhg/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/build-support/fetchhg/default.nix b/pkgs/build-support/fetchhg/default.nix index a80835cc71f..a3a2ec4d561 100644 --- a/pkgs/build-support/fetchhg/default.nix +++ b/pkgs/build-support/fetchhg/default.nix @@ -1,17 +1,17 @@ -{stdenv, mercurial, nix}: {url, tag ? null, md5}: +{stdenv, mercurial, nix}: {name ? null, url, tag ? null, md5 ? null, sha256 ? null}: # TODO: statically check if mercurial as the https support if the url starts woth https. stdenv.mkDerivation { - name = "fetchhg"; + name = "fetchhg" + (if (name != null) then "-${name}" else ""); builder = ./builder.sh; buildInputs = [mercurial nix]; # Nix <= 0.7 compatibility. id = md5; - outputHashAlgo = "md5"; + outputHashAlgo = if (md5 != null) then "md5" else "sha256"; outputHashMode = "recursive"; - outputHash = md5; + outputHash = if (md5 != null) then md5 else sha256; inherit url tag; } |