Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7# Note: this package is used for bootstrapping fetchurl, and thus 8# cannot use fetchpatch! All mutable patches (generated by GitHub or 9# cgit) that are needed here should be included directly in Nixpkgs as 10# files. 11 12stdenv.mkDerivation rec { 13 pname = "lzip"; 14 version = "1.25"; 15 outputs = [ 16 "out" 17 "man" 18 "info" 19 ]; 20 21 src = fetchurl { 22 url = "mirror://savannah/lzip/${pname}-${version}.tar.gz"; 23 hash = "sha256-CUGKbY+4P1ET9b2FbglwPfXTe64DCMZo0PNG49PwpW8="; 24 }; 25 26 patches = lib.optionals stdenv.hostPlatform.isMinGW [ 27 ./mingw-install-exe-file.patch 28 ]; 29 30 configureFlags = [ 31 "CPPFLAGS=-DNDEBUG" 32 "CFLAGS=-O3" 33 "CXXFLAGS=-O3" 34 "CXX=${stdenv.cc.targetPrefix}c++" 35 ]; 36 37 setupHook = ./lzip-setup-hook.sh; 38 39 doCheck = true; 40 enableParallelBuilding = true; 41 42 meta = with lib; { 43 homepage = "https://www.nongnu.org/lzip/lzip.html"; 44 description = "Lossless data compressor based on the LZMA algorithm"; 45 license = lib.licenses.gpl2Plus; 46 maintainers = with maintainers; [ vlaci ]; 47 platforms = lib.platforms.all; 48 mainProgram = "lzip"; 49 }; 50}