mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
tests: move package to its own file
Extract the `tests` package from `flake.nix` into its own file `tests/package.nix`. This a) de-couples it from the flake (to a degree) and b) allows more neatly using the callPackage pattern.
This commit is contained in:
parent
4ac96eb21c
commit
5fb2203af7
2 changed files with 9 additions and 3 deletions
8
tests/package.nix
Normal file
8
tests/package.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
flake,
|
||||
python3,
|
||||
writeShellScriptBin,
|
||||
}:
|
||||
writeShellScriptBin "tests" ''
|
||||
exec ${python3}/bin/python3 ${flake}/tests/tests.py "$@"
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue