gsl-lite: fix tests

This commit is contained in:
Azat Bahawi 2023-05-09 13:04:40 +03:00
parent 6868845472
commit b3ca04a48a
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

View file

@ -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