2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-08-30 06:10:27 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, libportal
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2017-10-03 22:22:25 +00:00
|
|
|
|
2020-08-30 06:10:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "gcolor3";
|
2020-08-30 06:10:27 +00:00
|
|
|
version = "2.4.0";
|
2017-10-03 22:22:25 +00:00
|
|
|
|
2018-09-17 10:41:24 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
2017-10-03 22:22:25 +00:00
|
|
|
repo = "gcolor3";
|
|
|
|
rev = "v${version}";
|
2020-08-30 06:10:27 +00:00
|
|
|
sha256 = "rHIAjk2m3Lkz11obgNZaapa1Zr2GDH7XzgzuAJmq+MU=";
|
2017-10-03 22:22:25 +00:00
|
|
|
};
|
|
|
|
|
2020-08-30 06:10:27 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
pkg-config
|
|
|
|
libxml2 # xml-stripblanks preprocessing of GResource
|
|
|
|
wrapGAppsHook
|
2019-09-14 00:53:00 +00:00
|
|
|
];
|
|
|
|
|
2020-08-30 06:10:27 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
libportal
|
|
|
|
];
|
2017-10-03 22:22:25 +00:00
|
|
|
|
2018-09-02 15:01:40 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_install.sh # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_install.sh
|
|
|
|
'';
|
2017-10-03 22:22:25 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-03 22:22:25 +00:00
|
|
|
description = "A simple color chooser written in GTK3";
|
2020-08-30 06:10:27 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/gcolor3";
|
2018-09-17 10:41:24 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-09-02 15:01:40 +00:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
2017-10-03 22:22:25 +00:00
|
|
|
};
|
|
|
|
}
|