11 stdenv.mkDerivation rec {
16 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
17 sha256 = "1fsgvmncd9caw552lyfg8swmsd6bh4ijjsph69bwacwfxwf09j75";
20 # Don't make deprecated usages hard errors
22 substituteInPlace configure --replace "-Werror" "";
25 # glib-2.62 deprecations
26 env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
28 # Patches from Gentoo portage
30 ./1.1.6-compiler-warnings.patch
31 ./1.1.6-fix-test.patch
32 ./1.1.6-G_CONST_RETURN.patch
33 ./1.1.6-include-terminator.patch
34 ] ++ [ ./gcc7-bug.patch ];
36 nativeBuildInputs = [ pkg-config ];
46 homepage = "https://gitlab.gnome.org/Archive/unique";
47 description = "Library for writing single instance applications";
48 license = lib.licenses.lgpl21;
49 platforms = with lib.platforms; linux ++ darwin;