2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gtk2, dbus-glib }:
|
2013-02-09 17:38:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libunique-1.1.6";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/libunique/1.1/${name}.tar.bz2";
|
|
|
|
sha256 = "1fsgvmncd9caw552lyfg8swmsd6bh4ijjsph69bwacwfxwf09j75";
|
|
|
|
};
|
|
|
|
|
|
|
|
# patches from Gentoo portage
|
|
|
|
patches = [
|
|
|
|
./1.1.6-compiler-warnings.patch
|
|
|
|
./1.1.6-fix-test.patch
|
|
|
|
./1.1.6-G_CONST_RETURN.patch
|
|
|
|
./1.1.6-include-terminator.patch
|
2018-02-18 09:35:46 +00:00
|
|
|
]
|
|
|
|
++ [ ./gcc7-bug.patch ];
|
2013-02-09 17:38:26 +00:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ glib gtk2 dbus-glib ];
|
2013-02-09 17:38:26 +00:00
|
|
|
|
|
|
|
# don't make deprecated usages hard errors
|
|
|
|
preBuild = ''substituteInPlace unique/dbus/Makefile --replace -Werror ""'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2018-02-18 09:35:46 +00:00
|
|
|
homepage = https://wiki.gnome.org/Attic/LibUnique;
|
2013-02-09 17:38:26 +00:00
|
|
|
description = "A library for writing single instance applications";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-02-09 17:38:26 +00:00
|
|
|
};
|
|
|
|
}
|