fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib
2, stdenv
3, fetchpatch
4, fetchFromGitHub
5}:
6
7stdenv.mkDerivation rec {
8 pname = "stargate-libcds";
9 version = "1.0.0";
10
11 src = fetchFromGitHub {
12 owner = "stargateaudio";
13 repo = "libcds";
14 rev = version;
15 sha256 = "sha256-THThEzS8gGdwn3h0EBttaX5ljZH9Ma2Rcg143+GIdU8=";
16 };
17
18 # Fix 'error: unrecognized command line option' in platforms other than x86
19 PLAT_FLAGS = lib.optionalString stdenv.isx86_64 "-mfpmath=sse -mssse3";
20
21 patches = [
22 # Remove unnecessary tests (valgrind, coverage)
23 ./Makefile.patch
24
25 # Fix for building on darwin
26 (fetchpatch {
27 name = "malloc-to-stdlib.patch";
28 url = "https://github.com/stargateaudio/libcds/commit/65dc08f059deda8ba5707ba6116b616d0ad0bd8d.patch";
29 sha256 = "sha256-FIGlobUVrDYOtnHjsWyE420PoULPHEK/3T9Fv8hfTl4=";
30 })
31 ];
32
33 doCheck = true;
34
35 installPhase = ''
36 runHook preInstall
37 install -D libcds.so -t $out/lib/
38 runHook postInstall
39 '';
40
41 meta = with lib; {
42 description = "C data structure library";
43 homepage = "https://github.com/stargateaudio/libcds";
44 maintainers = with maintainers; [ yuu ];
45 license = licenses.lgpl3Only;
46 };
47}