mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
tests: switch package to writeShellApplication
This commit is contained in:
committed by
Austin Horstman
parent
5fb2203af7
commit
9278414dcc
@@ -1,8 +1,14 @@
|
||||
{
|
||||
flake,
|
||||
python3,
|
||||
writeShellScriptBin,
|
||||
writeShellApplication,
|
||||
}:
|
||||
writeShellScriptBin "tests" ''
|
||||
exec ${python3}/bin/python3 ${flake}/tests/tests.py "$@"
|
||||
''
|
||||
writeShellApplication {
|
||||
name = "tests";
|
||||
runtimeInputs = [
|
||||
python3
|
||||
];
|
||||
text = ''
|
||||
exec python3 ${flake}/tests/tests.py "$@"
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user