summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Grünblatt <remy@grunblatt.org>2021-01-16 17:23:50 +0100
committerMatthieu Coudron <teto@users.noreply.github.com>2021-01-17 14:41:38 +0100
commit84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc (patch)
tree9ccc764826a3c5f7c8be6b2eb6d67afd84356fbc
parent22aff717dbe36a83c6160446f401aebd79fdb569 (diff)
downloadnixpkgs-84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc.tar
nixpkgs-84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc.tar.gz
nixpkgs-84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc.tar.bz2
nixpkgs-84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc.tar.lz
nixpkgs-84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc.tar.xz
nixpkgs-84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc.tar.zst
nixpkgs-84d0ecfc5fdb75e79d6f3c8545b26e32a02cacfc.zip
ns-3: Fix hash for 3.33 and patch for upstream bug
-rw-r--r--pkgs/development/libraries/science/networking/ns-3/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/libraries/science/networking/ns-3/default.nix b/pkgs/development/libraries/science/networking/ns-3/default.nix
index 94bb5c3e3ab..494c7f9f851 100644
--- a/pkgs/development/libraries/science/networking/ns-3/default.nix
+++ b/pkgs/development/libraries/science/networking/ns-3/default.nix
@@ -1,5 +1,6 @@
 { stdenv
 , fetchFromGitLab
+, fetchpatch
 , python
 , wafHook
 
@@ -44,7 +45,7 @@ stdenv.mkDerivation rec {
     owner = "nsnam";
     repo   = "ns-3-dev";
     rev    = "ns-3.${version}";
-    sha256 = "158yjhsrmslj1q4zcq5p16hv9i82qnxx714l7idicncn0wzrfx7k";
+    sha256 = "0ds8h0f2qcb0gc2a8bk38cbhdb122i4sbg589bjn59rblzw0hkq4";
   };
 
   nativeBuildInputs = [ wafHook python ];
@@ -97,6 +98,14 @@ stdenv.mkDerivation rec {
     ${pythonEnv.interpreter} ./test.py --nowaf
   '';
 
+  patches = [
+    (fetchpatch {
+      name = "upstream-issue-336.patch";
+      url = "https://gitlab.com/nsnam/ns-3-dev/-/commit/673004edae1112e6cb249b698aad856d728530fb.patch";
+      sha256 = "0q96ividinbh9xlws014b2ir6gaavygnln5ca9m1db06m4vfwhng";
+    })
+  ];
+
   # strictoverflow prevents clang from discovering pyembed when bindings
   hardeningDisable = [ "fortify" "strictoverflow"];