Remove unnecessary parentheses around if conditions

Pet peeve...
This commit is contained in:
Eelco Dolstra
2012-12-28 19:54:15 +01:00
parent e2d505b24e
commit 84779a6f7d
40 changed files with 130 additions and 130 deletions
+3 -3
View File
@@ -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;