From a33764258dc33643ede59836bcbe890ead31cc20 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Thu, 18 Apr 2024 13:24:48 +0200 Subject: gns3-server: add util-linux to PATH --- pkgs/applications/networking/gns3/server.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/applications') diff --git a/pkgs/applications/networking/gns3/server.nix b/pkgs/applications/networking/gns3/server.nix index f9939000f7440..24224ae0526d7 100644 --- a/pkgs/applications/networking/gns3/server.nix +++ b/pkgs/applications/networking/gns3/server.nix @@ -10,6 +10,7 @@ , stdenv , nixosTests , testers +, util-linux , gns3-server }: @@ -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 -- cgit 1.4.1 From ebe855c855b0dcd00774232f44d48d575b95be81 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Thu, 18 Apr 2024 13:27:30 +0200 Subject: gns3-server: replace `python3.pkgs` by `python3Packages` --- pkgs/applications/networking/gns3/server.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/networking/gns3/server.nix b/pkgs/applications/networking/gns3/server.nix index 24224ae0526d7..3e4764a145024 100644 --- a/pkgs/applications/networking/gns3/server.nix +++ b/pkgs/applications/networking/gns3/server.nix @@ -4,7 +4,7 @@ }: { lib -, python3 +, python3Packages , fetchFromGitHub , pkgsStatic , stdenv @@ -14,7 +14,7 @@ , gns3-server }: -python3.pkgs.buildPythonApplication { +python3Packages.buildPythonApplication { pname = "gns3-server"; inherit version; @@ -30,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 @@ -67,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; }) -- cgit 1.4.1