2016-09-11 21:24:51 +00:00
|
|
|
{stdenv, fetchurl, gtk2, perl, perlXMLParser, pkgconfig } :
|
2014-08-05 07:22:41 +00:00
|
|
|
|
|
|
|
let version = "0.4"; in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "gcolor2-${version}";
|
|
|
|
arch = if stdenv.system == "x86_64-linux" then "amd64" else "386";
|
|
|
|
|
|
|
|
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
|
|
|
|
patches = if stdenv.system == "x86_64-linux" then
|
|
|
|
[ ./gcolor2-amd64.patch ] else
|
|
|
|
[ ];
|
|
|
|
|
2016-09-11 21:24:51 +00:00
|
|
|
buildInputs = [ gtk2 perl perlXMLParser pkgconfig ];
|
2014-08-05 07:22:41 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple GTK+2 color selector";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|