1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01:00

tests.stubs: set pname

This commit is contained in:
amesgen 2022-08-07 14:03:37 +02:00 committed by Robert Helgesson
parent 324fedcf9f
commit 78f964347c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -40,7 +40,7 @@ let
pkg = if name == "dummy" && buildScript == defaultBuildScript then pkg = if name == "dummy" && buildScript == defaultBuildScript then
dummyPackage dummyPackage
else else
pkgs.runCommandLocal name { } buildScript; pkgs.runCommandLocal name { pname = name; } buildScript;
in pkg // optionalAttrs (outPath != null) { inherit outPath; } in pkg // optionalAttrs (outPath != null) { inherit outPath; }
// optionalAttrs (version != null) { inherit version; }; // optionalAttrs (version != null) { inherit version; };