7 stdenv.mkDerivation rec {
8 pname = "stargate-libcds";
11 src = fetchFromGitHub {
12 owner = "stargateaudio";
15 sha256 = "sha256-THThEzS8gGdwn3h0EBttaX5ljZH9Ma2Rcg143+GIdU8=";
18 # Fix 'error: unrecognized command line option' in platforms other than x86
19 PLAT_FLAGS = lib.optionalString stdenv.isx86_64 "-mfpmath=sse -mssse3";
22 # Remove unecessary tests (valgrind, coverage)
25 # Fix for building on darwin
27 name = "malloc-to-stdlib.patch";
28 url = "https://github.com/stargateaudio/libcds/commit/65dc08f059deda8ba5707ba6116b616d0ad0bd8d.patch";
29 sha256 = "sha256-FIGlobUVrDYOtnHjsWyE420PoULPHEK/3T9Fv8hfTl4=";
37 install -D libcds.so -t $out/lib/
42 description = "C data structure library";
43 homepage = "https://github.com/stargateaudio/libcds";
44 maintainers = with maintainers; [ yuu ];
45 license = licenses.lgpl3Only;