Skip to content

Commit

Permalink
fix: set pname
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Dec 13, 2023
1 parent 9f8865d commit 3e03611
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drv-tools/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
(
name: value:
if isDerivation value
then withMeta value (x: { label = name; })
then value // { pname = name; }
else
throwIfNot (isAttrs value) "Expected an attrset or a derivation" (
let cond = value_: hasAttr "text" value_ && isString value_.text; in
Expand Down Expand Up @@ -224,7 +224,6 @@
meta = prev.meta // {
inherit longDescription description;
mainProgram = name;
label = name;
};
})
)
Expand Down

0 comments on commit 3e03611

Please sign in to comment.