Merge pull request #283578 from hraban/bat-extras-pname
bat-extras: set pname to executable name
This commit is contained in:
commit
e51ce7cd44
@ -94,7 +94,7 @@ let
|
|||||||
name: # the name of the script
|
name: # the name of the script
|
||||||
dependencies: # the tools we need to prefix onto PATH
|
dependencies: # the tools we need to prefix onto PATH
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "${core.pname}-${name}";
|
pname = name;
|
||||||
inherit (core) version;
|
inherit (core) version;
|
||||||
|
|
||||||
src = core;
|
src = core;
|
||||||
@ -133,7 +133,9 @@ let
|
|||||||
# We already patched
|
# We already patched
|
||||||
dontPatchShebangs = true;
|
dontPatchShebangs = true;
|
||||||
|
|
||||||
inherit (core) meta;
|
meta = core.meta // {
|
||||||
|
mainProgram = name;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
optionalDep = cond: dep:
|
optionalDep = cond: dep:
|
||||||
assert cond -> dep != null;
|
assert cond -> dep != null;
|
||||||
|
Loading…
Reference in New Issue
Block a user