From 135742a84512c88a10cd0711c255cd94480d3405 Mon Sep 17 00:00:00 2001 From: Gabriel Gonzalez Date: Wed, 13 Jan 2021 20:59:55 -0800 Subject: [PATCH] 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). --- .../interpreters/dhall/build-dhall-github-package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/dhall/build-dhall-github-package.nix b/pkgs/development/interpreters/dhall/build-dhall-github-package.nix index 0978e47754b9..53adc5a9b125 100644 --- a/pkgs/development/interpreters/dhall/build-dhall-github-package.nix +++ b/pkgs/development/interpreters/dhall/build-dhall-github-package.nix @@ -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}"; }