diff options
author | Aleksana <me@aleksana.moe> | 2024-05-12 01:39:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 01:39:13 +0800 |
commit | 565942e7af8a06278710fdff567e96e02841e708 (patch) | |
tree | 4e17bdb51126e1d0d8d94ab2453955a71c36514a /pkgs/applications | |
parent | 61a083e0b0fa66d6a31ad02c75c77705eca34b06 (diff) | |
parent | ebe855c855b0dcd00774232f44d48d575b95be81 (diff) |
Merge pull request #303472 from anthonyroussel/fix-gns3-wrap-util-linux
gns3-server: add util-linux to PATH and replace python3.pkgs by python3Packages
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/gns3/server.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/applications/networking/gns3/server.nix b/pkgs/applications/networking/gns3/server.nix index f9939000f7440..3e4764a145024 100644 --- a/pkgs/applications/networking/gns3/server.nix +++ b/pkgs/applications/networking/gns3/server.nix @@ -4,16 +4,17 @@ }: { lib -, python3 +, python3Packages , fetchFromGitHub , pkgsStatic , stdenv , nixosTests , testers +, util-linux , gns3-server }: -python3.pkgs.buildPythonApplication { +python3Packages.buildPythonApplication { pname = "gns3-server"; inherit version; @@ -29,7 +30,7 @@ python3.pkgs.buildPythonApplication { cp ${pkgsStatic.busybox}/bin/busybox gns3server/compute/docker/resources/bin/busybox ''; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python3Packages; [ aiofiles aiohttp aiohttp-cors @@ -55,6 +56,9 @@ python3.pkgs.buildPythonApplication { rm $out/bin/gns3loopback ''; + # util-linux (script program) is required for Docker support + makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ util-linux ]}" ]; + doCheck = true; # Otherwise tests will fail to create directory @@ -63,7 +67,7 @@ python3.pkgs.buildPythonApplication { export HOME=$(mktemp -d) ''; - checkInputs = with python3.pkgs; [ + checkInputs = with python3Packages; [ pytest-aiohttp pytest-rerunfailures (pytestCheckHook.override { pytest = pytest_7; }) |