mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
fishPlugins.buildFishPlugin: rename checkFunctionPath parameter
This commit is contained in:
parent
165937d01e
commit
108fd69a8c
@ -27,7 +27,7 @@ scripts from `$src/{completions,conf,conf.d,functions}` to the standard vendor
|
||||
installation paths. It also sets up the test environment so that the optional
|
||||
`checkPhase` is executed in a Fish shell with other already packaged plugins
|
||||
and package-local Fish functions specified in `checkPlugins` and
|
||||
`checkFunctionPath` respectively.
|
||||
`checkFunctionDirs` respectively.
|
||||
|
||||
See `pkgs/shells/fish/plugins/pure.nix` for an example of Fish plugin package
|
||||
using `buildFishPlugin` and running unit tests with the `fishtape` test runner.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user