about summary refs log tree commit diff
path: root/nixpkgs/pkgs/shells/fish/plugins/build-fish-plugin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/shells/fish/plugins/build-fish-plugin.nix')
-rw-r--r--nixpkgs/pkgs/shells/fish/plugins/build-fish-plugin.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/shells/fish/plugins/build-fish-plugin.nix b/nixpkgs/pkgs/shells/fish/plugins/build-fish-plugin.nix
index a52c57464929..5bb4ffa243fc 100644
--- a/nixpkgs/pkgs/shells/fish/plugins/build-fish-plugin.nix
+++ b/nixpkgs/pkgs/shells/fish/plugins/build-fish-plugin.nix
@@ -11,8 +11,6 @@ attrs@{
   buildPhase ? ":",
   preInstall ? "",
   postInstall ? "",
-  # name of the subdirectory in which to store the plugin
-  installPath ? lib.getName pname,
 
   checkInputs ? [],
   # plugin packages to add to the vendor paths of the test fish shell
@@ -26,7 +24,15 @@ attrs@{
   ...
 }:
 
-stdenv.mkDerivation (attrs // {
+let
+  # Do not pass attributes that are only relevant to buildFishPlugin to mkDerivation.
+  drvAttrs = builtins.removeAttrs attrs [
+    "checkPlugins"
+    "checkFunctionDirs"
+  ];
+in
+
+stdenv.mkDerivation (drvAttrs // {
   inherit name;
   inherit unpackPhase configurePhase buildPhase;