diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-12-28 19:54:15 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-12-28 19:54:15 +0100 |
commit | 84779a6f7da93bd6325f478c62c82cc0a1a2e341 (patch) | |
tree | 554971a930d84656bb952ba0f9a328ef08e70c72 /pkgs/build-support/fetchhg | |
parent | e2d505b24e50e16e3634478d565c7c9988b1d90f (diff) | |
download | nixpkgs-84779a6f7da93bd6325f478c62c82cc0a1a2e341.tar nixpkgs-84779a6f7da93bd6325f478c62c82cc0a1a2e341.tar.gz nixpkgs-84779a6f7da93bd6325f478c62c82cc0a1a2e341.tar.bz2 nixpkgs-84779a6f7da93bd6325f478c62c82cc0a1a2e341.tar.lz nixpkgs-84779a6f7da93bd6325f478c62c82cc0a1a2e341.tar.xz nixpkgs-84779a6f7da93bd6325f478c62c82cc0a1a2e341.tar.zst nixpkgs-84779a6f7da93bd6325f478c62c82cc0a1a2e341.zip |
Remove unnecessary parentheses around if conditions
Pet peeve...
Diffstat (limited to 'pkgs/build-support/fetchhg')
-rw-r--r-- | pkgs/build-support/fetchhg/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/fetchhg/default.nix b/pkgs/build-support/fetchhg/default.nix index 537867f215b..1aebb7ecc87 100644 --- a/pkgs/build-support/fetchhg/default.nix +++ b/pkgs/build-support/fetchhg/default.nix @@ -2,16 +2,16 @@ # TODO: statically check if mercurial as the https support if the url starts woth https. stdenv.mkDerivation { - name = "hg-archive" + (if (name != null) then "-${name}" else ""); + name = "hg-archive" + (if name != null then "-${name}" else ""); builder = ./builder.sh; buildInputs = [mercurial]; # Nix <= 0.7 compatibility. id = md5; - outputHashAlgo = if (md5 != null) then "md5" else "sha256"; + outputHashAlgo = if md5 != null then "md5" else "sha256"; outputHashMode = "recursive"; - outputHash = if (md5 != null) then md5 else sha256; + outputHash = if md5 != null then md5 else sha256; inherit url tag; preferLocalBuild = true; |