at v192 829 B view raw
1{ stdenv, fetchurl, pkgconfig, glib, gtk, dbus_glib }: 2 3stdenv.mkDerivation rec { 4 name = "libunique-1.1.6"; 5 src = fetchurl { 6 url = "mirror://gnome/sources/libunique/1.1/${name}.tar.bz2"; 7 sha256 = "1fsgvmncd9caw552lyfg8swmsd6bh4ijjsph69bwacwfxwf09j75"; 8 }; 9 10 # patches from Gentoo portage 11 patches = [ 12 ./1.1.6-compiler-warnings.patch 13 ./1.1.6-fix-test.patch 14 ./1.1.6-G_CONST_RETURN.patch 15 ./1.1.6-include-terminator.patch 16 ]; 17 18 buildInputs = [ pkgconfig glib gtk dbus_glib ]; 19 20 # don't make deprecated usages hard errors 21 preBuild = ''substituteInPlace unique/dbus/Makefile --replace -Werror ""''; 22 23 doCheck = true; 24 25 meta = { 26 homepage = http://live.gnome.org/LibUnique; 27 description = "A library for writing single instance applications"; 28 license = stdenv.lib.licenses.lgpl21; 29 }; 30}