fishPlugins.buildFishPlugin: rename checkFunctionPath parameter
This commit is contained in:
@@ -18,7 +18,7 @@ attrs@{
|
||||
# plugin packages to add to the vendor paths of the test fish shell
|
||||
checkPlugins ? [],
|
||||
# vendor directories to add to the function path of the test fish shell
|
||||
checkFunctionPath ? [],
|
||||
checkFunctionDirs ? [],
|
||||
# test script to be executed in a fish shell
|
||||
checkPhase ? "",
|
||||
doCheck ? checkPhase != "",
|
||||
@@ -57,7 +57,7 @@ stdenv.mkDerivation (attrs // {
|
||||
|
||||
checkInputs = [ (wrapFish {
|
||||
pluginPkgs = checkPlugins;
|
||||
functionDirs = checkFunctionPath;
|
||||
functionDirs = checkFunctionDirs;
|
||||
}) ] ++ checkInputs;
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
@@ -11,7 +11,7 @@ buildFishPlugin rec {
|
||||
sha256 = "0dxcyhs2shhgy5xnwcimqja8vqsyk841x486lgq13i3y1h0kp2kd";
|
||||
};
|
||||
|
||||
checkFunctionPath = [ "./" ]; # fishtape is introspective
|
||||
checkFunctionDirs = [ "./" ]; # fishtape is introspective
|
||||
checkPhase = ''
|
||||
rm test/tty.fish # test expects a tty
|
||||
fishtape test/*.fish
|
||||
|
||||
Reference in New Issue
Block a user