Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 42 lines 974 B view raw
1{ lib 2, stdenv 3, fetchurl 4, withShishi ? !stdenv.isDarwin 5, shishi 6}: 7 8stdenv.mkDerivation rec { 9 pname = "gss"; 10 version = "1.0.4"; 11 12 src = fetchurl { 13 url = "mirror://gnu/gss/gss-${version}.tar.gz"; 14 hash = "sha256-7M6r3vTK4/znIYsuy4PrQifbpEtTthuMKy6IrgJBnHM="; 15 }; 16 17 buildInputs = lib.optional withShishi shishi; 18 19 # ./stdint.h:89:5: error: expected value in expression 20 preConfigure = lib.optionalString stdenv.isDarwin '' 21 export GNULIBHEADERS_OVERRIDE_WINT_T=0 22 ''; 23 24 configureFlags = [ 25 "--${if withShishi then "enable" else "disable"}-kerberos5" 26 ]; 27 28 doCheck = true; 29 30 # Fixup .la files 31 postInstall = lib.optionalString withShishi '' 32 sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la 33 ''; 34 35 meta = with lib; { 36 homepage = "https://www.gnu.org/software/gss/"; 37 description = "Generic Security Service"; 38 license = licenses.gpl3Plus; 39 maintainers = with maintainers; [ ]; 40 platforms = platforms.all; 41 }; 42}