about summary refs log tree commit diff
path: root/pkgs/applications/networking/gns3
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2023-09-20 22:41:03 +0200
committerAnthony Roussel <anthony@roussel.dev>2023-09-20 23:19:12 +0200
commit62eb1578944f01e36264129b1d2342251f346787 (patch)
treec76eeb140f81a48e0c9bd483b2378427adbb868e /pkgs/applications/networking/gns3
parente206ee4cf3b4fd8b5bf848d115b4a6baa305f632 (diff)
gns3-server: keep gns3loopack on windows host platforms
Diffstat (limited to 'pkgs/applications/networking/gns3')
-rw-r--r--pkgs/applications/networking/gns3/server.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/networking/gns3/server.nix b/pkgs/applications/networking/gns3/server.nix
index 98ae803492f0f..48d48de83b2a5 100644
--- a/pkgs/applications/networking/gns3/server.nix
+++ b/pkgs/applications/networking/gns3/server.nix
@@ -7,6 +7,7 @@
 , python3
 , fetchFromGitHub
 , pkgsStatic
+, stdenv
 }:
 
 python3.pkgs.buildPythonApplication {
@@ -46,8 +47,8 @@ python3.pkgs.buildPythonApplication {
     zipstream
   ];
 
-  postInstall = ''
-    rm $out/bin/gns3loopback # For Windows only
+  postInstall = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
+    rm $out/bin/gns3loopback
   '';
 
   doCheck = true;