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

52 lines
971 B
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitLab
, meson
, ninja
, gettext
, pkg-config
, libxml2
, gtk3
, libportal
, wrapGAppsHook
}:
2017-10-03 22:22:25 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "gcolor3";
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}";
sha256 = "rHIAjk2m3Lkz11obgNZaapa1Zr2GDH7XzgzuAJmq+MU=";
2017-10-03 22:22:25 +00:00
};
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
libxml2 # xml-stripblanks preprocessing of GResource
wrapGAppsHook
2019-09-14 00:53:00 +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
meta = with lib; {
2017-10-03 22:22:25 +00:00
description = "A simple color chooser written in GTK3";
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
};
}