lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at release-16.03-start 43 lines 1.0 kB view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "ustr-${version}"; 5 version = "1.0.4"; 6 7 src = fetchurl { 8 url = "http://www.and.org/ustr/${version}/${name}.tar.bz2"; 9 sha256 = "1i623ygdj7rkizj7985q9d6vj5amwg686aqb5j3ixpkqkyp6xbrx"; 10 }; 11 12 # Fixes bogus warnings that failed libsemanage 13 patches = [ ./va_args.patch ]; 14 15 # Work around gcc5 switch to gnu11 16 NIX_CFLAGS_COMPILE = "-std=gnu89"; 17 18 # Fix detection of stdint.h 19 postPatch = '' 20 sed -i 's,\(have_stdint_h\)=0,\1=1,g' Makefile 21 sed -i 's,\(USTR_CONF_HAVE_STDINT_H\) 0,\1 1,g' ustr-import.in 22 ''; 23 24 buildTargets = [ "all-shared" ]; 25 26 preBuild = '' 27 makeFlagsArray+=("prefix=$out") 28 makeFlagsArray+=("LDCONFIG=echo") 29 makeFlagsArray+=("HIDE=") 30 ''; 31 32 # Remove debug libraries 33 postInstall = '' 34 find $out/lib -name \*debug\* -delete 35 ''; 36 37 meta = with stdenv.lib; { 38 homepage = http://www.and.org/ustr/; 39 description = "Micro String API for C language"; 40 license = licenses.bsd2; 41 maintainers = [ maintainers.phreedom ]; 42 }; 43}