about summary refs log tree commit diff
path: root/pkgs/development/libraries/gsl-lite
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-05-09 13:04:40 +0300
committerAzat Bahawi <azat@bahawi.net>2023-05-09 13:51:34 +0300
commitb3ca04a48aca788e60671f96ae2ec705ee5ba019 (patch)
treeabb5e0e20315a3e22f7a8b15f98a5c80bda3134a /pkgs/development/libraries/gsl-lite
parent68688454720b2ea0df54ee9625739f7911fae000 (diff)
gsl-lite: fix tests
Diffstat (limited to 'pkgs/development/libraries/gsl-lite')
-rw-r--r--pkgs/development/libraries/gsl-lite/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gsl-lite/default.nix b/pkgs/development/libraries/gsl-lite/default.nix
index 9078df05d9dbc..fcab020952644 100644
--- a/pkgs/development/libraries/gsl-lite/default.nix
+++ b/pkgs/development/libraries/gsl-lite/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchpatch
 , cmake
 , ninja
 , installCompatHeader ? false
@@ -18,6 +19,14 @@ stdenv.mkDerivation rec {
     hash = "sha256-cuuix302bVA7dWa7EJoxJ+otf1rSzjWQK8DHJsVkQio=";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "type-limits-cast-fix.patch";
+      url = "https://github.com/gsl-lite/gsl-lite/commit/13475be0e5bf5f464c398f4a07ef5c7684bc57c5.patch";
+      hash = "sha256-rSz7OBmgQ3KcQ971tS3Z3QNC+U4XmrPjgmuOyG7J6Bo=";
+    })
+  ];
+
   nativeBuildInputs = [ cmake ninja ];
 
   cmakeFlags = lib.mapAttrsToList