Incorporate revision in name for Dhall GitHub packages
This is a small quality-of-life improvement so that the package version/revision can be inferred from the /nix/store path (which is the convention for most of the Nixpkgs ecosystem).
This commit is contained in:
parent
7996fb0d4e
commit
135742a845
|
@ -25,8 +25,10 @@ lib.makePackageOverridable
|
||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
versionedName = "${name}-${rev}";
|
||||||
|
|
||||||
src = fetchFromGitHub ({
|
src = fetchFromGitHub ({
|
||||||
name = "${name}-source";
|
name = "${versionedName}-source";
|
||||||
|
|
||||||
inherit owner repo rev;
|
inherit owner repo rev;
|
||||||
} // removeAttrs args [
|
} // removeAttrs args [
|
||||||
|
@ -45,7 +47,9 @@ lib.makePackageOverridable
|
||||||
|
|
||||||
in
|
in
|
||||||
buildDhallPackage
|
buildDhallPackage
|
||||||
( { inherit name dependencies source;
|
( { inherit dependencies source;
|
||||||
|
|
||||||
|
name = versionedName;
|
||||||
|
|
||||||
code = "${src}/${prefix}${file}";
|
code = "${src}/${prefix}${file}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue