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:
|
||||
|
||||
let
|
||||
versionedName = "${name}-${rev}";
|
||||
|
||||
src = fetchFromGitHub ({
|
||||
name = "${name}-source";
|
||||
name = "${versionedName}-source";
|
||||
|
||||
inherit owner repo rev;
|
||||
} // removeAttrs args [
|
||||
@ -45,7 +47,9 @@ lib.makePackageOverridable
|
||||
|
||||
in
|
||||
buildDhallPackage
|
||||
( { inherit name dependencies source;
|
||||
( { inherit dependencies source;
|
||||
|
||||
name = versionedName;
|
||||
|
||||
code = "${src}/${prefix}${file}";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user