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).
gstqt5
Gabriel Gonzalez 2021-01-13 20:59:55 -08:00 committed by Emery Hemingway
parent 7996fb0d4e
commit 135742a845
1 changed files with 6 additions and 2 deletions

View File

@ -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}";
}