Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 35 lines 999 B view raw
1{ stdenv, fetchurl, pkgconfig, glib, gtk2, 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 NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 11 12 # patches from Gentoo portage 13 patches = [ 14 ./1.1.6-compiler-warnings.patch 15 ./1.1.6-fix-test.patch 16 ./1.1.6-G_CONST_RETURN.patch 17 ./1.1.6-include-terminator.patch 18 ] 19 ++ [ ./gcc7-bug.patch ]; 20 21 nativeBuildInputs = [ pkgconfig ]; 22 buildInputs = [ glib gtk2 dbus-glib ]; 23 24 # don't make deprecated usages hard errors 25 preBuild = ''substituteInPlace unique/dbus/Makefile --replace -Werror ""''; 26 27 doCheck = true; 28 29 meta = { 30 homepage = https://wiki.gnome.org/Attic/LibUnique; 31 description = "A library for writing single instance applications"; 32 license = stdenv.lib.licenses.lgpl21; 33 platforms = stdenv.lib.platforms.linux; 34 }; 35}