blob: c7113801b61592b8435b04af45201b7ddc85093b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{stdenv, fetchurl, gtk, perl, perlXMLParser, pkgconfig } :
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
[ ];
buildInputs = [ gtk perl perlXMLParser pkgconfig ];
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;
};
}
|