tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
gcolor3: 2.2 → 2.3
Jan Tojnar
7 years ago
87f3a2a4
08322086
+24
-12
1 changed file
expand all
collapse all
unified
split
pkgs
applications
graphics
gcolor3
default.nix
+24
-12
pkgs/applications/graphics/gcolor3/default.nix
···
1
-
{ stdenv, fetchFromGitHub, gnome3, libtool, intltool, pkgconfig, gtk3, hicolor-icon-theme, wrapGAppsHook } :
2
3
let
4
-
version = "2.2";
5
in stdenv.mkDerivation {
6
name = "gcolor3-${version}";
7
···
9
owner = "hjdskes";
10
repo = "gcolor3";
11
rev = "v${version}";
12
-
sha256 = "1rbahsi33pfggpj5cigy6wy5333g3rpm8v2q0b35c6m7pwhmf2gr";
13
};
14
15
-
nativeBuildInputs = [ gnome3.gnome-common libtool intltool pkgconfig hicolor-icon-theme wrapGAppsHook ];
0
0
0
0
0
0
0
0
0
0
16
17
-
buildInputs = [ gtk3 ];
18
19
-
configureScript = "./autogen.sh";
20
21
-
# clang-4.0: error: argument unused during compilation: '-pthread'
22
-
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isClang "-Wno-error=unused-command-line-argument";
0
0
23
24
-
meta = {
25
description = "A simple color chooser written in GTK3";
26
homepage = https://hjdskes.github.io/projects/gcolor3/;
27
-
license = stdenv.lib.licenses.gpl2;
28
-
maintainers = with stdenv.lib.maintainers; [ jtojnar ];
29
-
platforms = stdenv.lib.platforms.unix;
30
};
31
}
···
1
+
{ stdenv, fetchFromGitHub, fetchpatch, gnome3, meson, ninja, gettext, pkgconfig, libxml2, gtk3, hicolor-icon-theme, wrapGAppsHook }:
2
3
let
4
+
version = "2.3";
5
in stdenv.mkDerivation {
6
name = "gcolor3-${version}";
7
···
9
owner = "hjdskes";
10
repo = "gcolor3";
11
rev = "v${version}";
12
+
sha256 = "186j72kwsqdcakvdik9jl18gz3csdj53j3ylwagr9gfwmy0nmyjb";
13
};
14
15
+
patches = [
16
+
# Fix darwin build
17
+
(fetchpatch {
18
+
url = https://github.com/Hjdskes/gcolor3/commit/9130ffeff091fbafff6a0c8f06b09f54657d5dfd.patch;
19
+
sha256 = "1kn5hx536wivafb4awg7lsa8h32njy0lynmn7ci9y78dlp54057r";
20
+
})
21
+
(fetchpatch {
22
+
url = https://github.com/Hjdskes/gcolor3/commit/8d89081a8e13749f5a9051821114bc5fe814eaf3.patch;
23
+
sha256 = "1ldyr84dl2g6anqkp2mpxsrcr41fcqwi6ck14rfhai7rgrm8yar3";
24
+
})
25
+
];
26
27
+
nativeBuildInputs = [ meson ninja gettext pkgconfig libxml2 wrapGAppsHook ];
28
29
+
buildInputs = [ gtk3 hicolor-icon-theme ];
30
31
+
postPatch = ''
32
+
chmod +x meson_install.sh # patchShebangs requires executable file
33
+
patchShebangs meson_install.sh
34
+
'';
35
36
+
meta = with stdenv.lib; {
37
description = "A simple color chooser written in GTK3";
38
homepage = https://hjdskes.github.io/projects/gcolor3/;
39
+
license = licenses.gpl2;
40
+
maintainers = with maintainers; [ jtojnar ];
41
+
platforms = platforms.unix;
42
};
43
}