lol

stargate-libcds: init at 1.0.0

Co-authored-by: figsoda <figsoda@pm.me>
Co-authored-by: Jonathan Ringer <jonringer117@gmail.com>
Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>

yuu 37e6fd60 331c462c

+68
+19
pkgs/development/libraries/stargate-libcds/Makefile.patch
··· 1 + diff --git a/Makefile b/Makefile 2 + index 872af46..7eba8a1 100644 3 + --- a/Makefile 4 + +++ b/Makefile 5 + @@ -156,13 +156,7 @@ test: 6 + # Compile and run the test suite through Valgrind to check for 7 + # memory errors, then generate an HTML code coverage report 8 + # using gcovr 9 + - $(CC) $(CC_ARGS) -O0 $(DEBUG_FLAGS) $(PLAT_FLAGS) $(GCOVARGS) \ 10 + + $(CC) $(CC_ARGS) -O0 $(DEBUG_FLAGS) $(PLAT_FLAGS) \ 11 + $(shell find src tests -name *.c) \ 12 + -Iinclude \ 13 + -o $(NAME).tests 14 + - # If Valgrind exits non-zero, try running 'gdb ./libcds.tests' 15 + - # to debug the test suite 16 + - valgrind ./$(NAME).tests --track-origins=yes --leak-check=full 17 + - mkdir html || rm -rf html/* 18 + - gcovr -r . --exclude=bench --html --html-details -o html/coverage.html 19 + - $(BROWSER) html/coverage.html &
+47
pkgs/development/libraries/stargate-libcds/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchpatch 4 + , fetchFromGitHub 5 + }: 6 + 7 + stdenv.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 unecessary 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 + }
+2
pkgs/top-level/all-packages.nix
··· 19567 19567 19568 19568 srtp = callPackage ../development/libraries/srtp { }; 19569 19569 19570 + stargate-libcds = callPackage ../development/libraries/stargate-libcds { }; 19571 + 19570 19572 stb = callPackage ../development/libraries/stb { }; 19571 19573 19572 19574 StormLib = callPackage ../development/libraries/StormLib { };