lol
at 17.09-beta 37 lines 1.0 kB view raw
1{ stdenv, fetchurl, python, pkgconfig, glib }: 2 3stdenv.mkDerivation (rec { 4 name = "gamin-0.1.10"; 5 6 src = fetchurl { 7 url = "http://www.gnome.org/~veillard/gamin/sources/${name}.tar.gz"; 8 sha256 = "18cr51y5qacvs2fc2p1bqv32rs8bzgs6l67zhasyl45yx055y218"; 9 }; 10 11 nativeBuildInputs = [ pkgconfig ]; 12 13 buildInputs = [ python glib ]; 14 15 # `_GNU_SOURCE' is needed, e.g., to get `struct ucred' from 16 # <sys/socket.h> with Glibc 2.9. 17 configureFlags = "--disable-debug --with-python=${python} CPPFLAGS=-D_GNU_SOURCE"; 18 19 patches = [ ./deadlock.patch ] 20 ++ map fetchurl (import ./debian-patches.nix) 21 ++ stdenv.lib.optional stdenv.cc.isClang ./returnval.patch; 22 23 24 meta = with stdenv.lib; { 25 homepage = https://people.gnome.org/~veillard/gamin/; 26 description = "A file and directory monitoring system"; 27 maintainers = with maintainers; [ lovek323 ]; 28 platforms = platforms.unix; 29 }; 30} 31 32// stdenv.lib.optionalAttrs stdenv.isDarwin { 33 preBuild = '' 34 sed -i 's/,--version-script=.*$/\\/' libgamin/Makefile 35 ''; 36}) 37