2018-10-12 22:56:15 +00:00
|
|
|
{stdenv, fetchurl, gtk2, perlPackages, pkgconfig } :
|
2014-08-05 07:22:41 +00:00
|
|
|
|
|
|
|
let version = "0.4"; in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "gcolor2";
|
|
|
|
inherit version;
|
2018-08-20 19:11:29 +00:00
|
|
|
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "amd64" else "386";
|
2014-08-05 07:22:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/gcolor2/gcolor2/${version}/gcolor2-${version}.tar.bz2";
|
|
|
|
sha1 = "e410a52dcff3d5c6c3d448b68a026d04ccd744be";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/\[:space:\]/[&]/g' configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
# from https://github.com/PhantomX/slackbuilds/tree/master/gcolor2/patches
|
2018-08-20 19:11:29 +00:00
|
|
|
patches = if stdenv.hostPlatform.system == "x86_64-linux" then
|
2014-08-05 07:22:41 +00:00
|
|
|
[ ./gcolor2-amd64.patch ] else
|
|
|
|
[ ];
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-10-12 22:56:15 +00:00
|
|
|
buildInputs = [ gtk2 ]
|
|
|
|
++ (with perlPackages; [ perl XMLParser ]);
|
2014-08-05 07:22:41 +00:00
|
|
|
|
|
|
|
meta = {
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "Simple GTK 2 color selector";
|
2014-08-05 07:22:41 +00:00
|
|
|
homepage = http://gcolor2.sourceforge.net/;
|
2014-08-05 14:55:55 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ notthemessiah ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2014-08-05 07:22:41 +00:00
|
|
|
};
|
|
|
|
}
|