1
0
Fork 0
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:
Matt Sturgeon 2025-11-01 10:39:01 +00:00 committed by Austin Horstman
parent 5fb2203af7
commit 9278414dcc

View file

@ -1,8 +1,14 @@
{ {
flake, flake,
python3, python3,
writeShellScriptBin, writeShellApplication,
}: }:
writeShellScriptBin "tests" '' writeShellApplication {
exec ${python3}/bin/python3 ${flake}/tests/tests.py "$@" name = "tests";
'' runtimeInputs = [
python3
];
text = ''
exec python3 ${flake}/tests/tests.py "$@"
'';
}