1 { lib, stdenv, fetchurl, pkg-config, glib, gtk2, dbus-glib }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
9 sha256 = "1fsgvmncd9caw552lyfg8swmsd6bh4ijjsph69bwacwfxwf09j75";
12 # Don't make deprecated usages hard errors
14 substituteInPlace configure --replace "-Werror" "";
17 # glib-2.62 deprecations
18 NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
20 # Patches from Gentoo portage
22 ./1.1.6-compiler-warnings.patch
23 ./1.1.6-fix-test.patch
24 ./1.1.6-G_CONST_RETURN.patch
25 ./1.1.6-include-terminator.patch
26 ] ++ [ ./gcc7-bug.patch ];
28 nativeBuildInputs = [ pkg-config ];
29 buildInputs = [ glib gtk2 dbus-glib ];
34 homepage = "https://wiki.gnome.org/Attic/LibUnique";
35 description = "A library for writing single instance applications";
36 license = lib.licenses.lgpl21;
37 platforms = with lib.platforms; linux ++ darwin;