nixos-rebuild-ng: use python3Packages
This commit is contained in:
@@ -5,20 +5,21 @@
|
|||||||
nix,
|
nix,
|
||||||
nixos-rebuild,
|
nixos-rebuild,
|
||||||
python3,
|
python3,
|
||||||
|
python3Packages,
|
||||||
runCommand,
|
runCommand,
|
||||||
withNgSuffix ? true,
|
withNgSuffix ? true,
|
||||||
}:
|
}:
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "nixos-rebuild-ng";
|
pname = "nixos-rebuild-ng";
|
||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
src = ./src;
|
src = ./src;
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
build-system = with python3.pkgs; [
|
build-system = with python3Packages; [
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
dependencies = with python3.pkgs; [
|
dependencies = with python3Packages; [
|
||||||
tabulate
|
tabulate
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -54,7 +55,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
mv $out/bin/nixos-rebuild $out/bin/nixos-rebuild-ng
|
mv $out/bin/nixos-rebuild $out/bin/nixos-rebuild-ng
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
nativeCheckInputs = with python3Packages; [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user