Loading pkgs/build-support/fetchdarcs/builder.sh +7 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,11 @@ source $stdenv/setup tagtext="" tagflags="" if test -n "$rev"; then # Darcs hashes are sha1 (120 bits, 40-character hex) if [[ "$rev" =~ [a-fA-F0-9]{40} ]]; then tagtext="(hash $rev)" tagflags="--to-hash=$rev" elif test -n "$rev"; then tagtext="(tag $rev)" tagflags="--tag=$rev" elif test -n "$context"; then Loading pkgs/build-support/fetchdarcs/default.nix +8 −3 Original line number Diff line number Diff line {stdenvNoCC, darcs, cacert}: {url, rev ? null, context ? null, md5 ? "", sha256 ? ""}: { url , rev ? null , context ? null , md5 ? "" , sha256 ? "" , name ? "fetchdarcs" }: if md5 != "" then throw "fetchdarcs does not support md5 anymore, please use sha256" else stdenvNoCC.mkDerivation { name = "fetchdarcs"; builder = ./builder.sh; nativeBuildInputs = [cacert darcs]; Loading @@ -14,5 +19,5 @@ stdenvNoCC.mkDerivation { outputHashMode = "recursive"; outputHash = sha256; inherit url rev context; inherit url rev context name; } Loading
pkgs/build-support/fetchdarcs/builder.sh +7 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,11 @@ source $stdenv/setup tagtext="" tagflags="" if test -n "$rev"; then # Darcs hashes are sha1 (120 bits, 40-character hex) if [[ "$rev" =~ [a-fA-F0-9]{40} ]]; then tagtext="(hash $rev)" tagflags="--to-hash=$rev" elif test -n "$rev"; then tagtext="(tag $rev)" tagflags="--tag=$rev" elif test -n "$context"; then Loading
pkgs/build-support/fetchdarcs/default.nix +8 −3 Original line number Diff line number Diff line {stdenvNoCC, darcs, cacert}: {url, rev ? null, context ? null, md5 ? "", sha256 ? ""}: { url , rev ? null , context ? null , md5 ? "" , sha256 ? "" , name ? "fetchdarcs" }: if md5 != "" then throw "fetchdarcs does not support md5 anymore, please use sha256" else stdenvNoCC.mkDerivation { name = "fetchdarcs"; builder = ./builder.sh; nativeBuildInputs = [cacert darcs]; Loading @@ -14,5 +19,5 @@ stdenvNoCC.mkDerivation { outputHashMode = "recursive"; outputHash = sha256; inherit url rev context; inherit url rev context name; }