mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
tests: switch package to writeShellApplication
This commit is contained in:
parent
5fb2203af7
commit
9278414dcc
1 changed files with 10 additions and 4 deletions
|
|
@ -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 "$@"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue