mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
committed by
Austin Horstman
parent
4ac96eb21c
commit
5fb2203af7
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 "$@"
|
||||
''
|
||||
Reference in New Issue
Block a user