diff --git a/pkgs/by-name/mk/mkScriptOverride/package.nix b/pkgs/by-name/mk/mkScriptOverride/package.nix index 6777a0c..e71d07c 100644 --- a/pkgs/by-name/mk/mkScriptOverride/package.nix +++ b/pkgs/by-name/mk/mkScriptOverride/package.nix @@ -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