pkgs/mkScriptOverride: support for default name from path
This commit is contained in:
parent
164ceef166
commit
26566f97dd
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@
|
|||
lib.hiPrio (stdenv.mkDerivation (
|
||||
{
|
||||
src = src;
|
||||
name = "${src.name}-script-override";
|
||||
name = if lib.isDerivation src
|
||||
then "${src.name}-script-override"
|
||||
else "${builtins.baseNameOf src}-script-override";
|
||||
phases = [ "installPhase" "scriptOverridePhase" ];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
|
Loading…
Reference in a new issue