nixpkgs/pkgs/applications/graphics/gcolor3/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2019-09-14 02:53:00 +02:00
{ stdenv, fetchFromGitLab, meson, ninja, gettext, pkgconfig, libxml2, gtk3, hicolor-icon-theme, wrapGAppsHook
, fetchpatch }:
2017-10-04 00:22:25 +02:00
let
2018-09-17 12:41:24 +02:00
version = "2.3.1";
2017-10-04 00:22:25 +02:00
in stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "gcolor3";
inherit version;
2017-10-04 00:22:25 +02:00
2018-09-17 12:41:24 +02:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
2017-10-04 00:22:25 +02:00
repo = "gcolor3";
rev = "v${version}";
2018-09-17 12:41:24 +02:00
sha256 = "10cfzlkflwkb7f51rnrxmgxpfryh1qzvqaydj6lffjq9zvnhigg7";
2017-10-04 00:22:25 +02:00
};
2019-09-14 02:53:00 +02:00
patches = [
# Remove useage of deprecrated G_PARAM_PRIVATE
(fetchpatch {
url = "https://gitlab.gnome.org/World/gcolor3/commit/96612cdd6c2cc71e28eb97ee17956004a05e5140.patch";
sha256 = "134wv5x15bd7k0fjzifrddwssaq213sx2l38r3xw6x1j625qwzq9";
})
];
2018-09-02 17:01:40 +02:00
nativeBuildInputs = [ meson ninja gettext pkgconfig libxml2 wrapGAppsHook ];
2017-10-04 00:22:25 +02:00
2018-09-02 17:01:40 +02:00
buildInputs = [ gtk3 hicolor-icon-theme ];
2017-10-04 00:22:25 +02:00
2018-09-02 17:01:40 +02:00
postPatch = ''
chmod +x meson_install.sh # patchShebangs requires executable file
patchShebangs meson_install.sh
'';
2017-10-04 00:22:25 +02:00
2018-09-02 17:01:40 +02:00
meta = with stdenv.lib; {
2017-10-04 00:22:25 +02:00
description = "A simple color chooser written in GTK3";
2018-09-17 12:41:24 +02:00
homepage = https://www.hjdskes.nl/projects/gcolor3/;
license = licenses.gpl2Plus;
2018-09-02 17:01:40 +02:00
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.unix;
2017-10-04 00:22:25 +02:00
};
}