nixpkgs/pkgs/applications/graphics/gcolor2/default.nix
Jan Tojnar 72e7d569a7
tree-wide: s/GTK+/GTK/g
GTK was renamed.
2019-09-06 02:54:53 +02:00

36 lines
1 KiB
Nix

{stdenv, fetchurl, gtk2, perlPackages, pkgconfig } :
let version = "0.4"; in
stdenv.mkDerivation {
pname = "gcolor2";
inherit version;
arch = if stdenv.hostPlatform.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.hostPlatform.system == "x86_64-linux" then
[ ./gcolor2-amd64.patch ] else
[ ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk2 ]
++ (with perlPackages; [ perl XMLParser ]);
meta = {
description = "Simple GTK 2 color selector";
homepage = http://gcolor2.sourceforge.net/;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [ notthemessiah ];
platforms = with stdenv.lib.platforms; unix;
};
}