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

33 lines
920 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, meson, ninja, gettext, pkgconfig, libxml2, gtk3, hicolor-icon-theme, wrapGAppsHook }:
2017-10-03 22:22:25 +00:00
let
2018-09-17 10:41:24 +00:00
version = "2.3.1";
2017-10-03 22:22:25 +00:00
in stdenv.mkDerivation {
name = "gcolor3-${version}";
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}";
2018-09-17 10:41:24 +00:00
sha256 = "10cfzlkflwkb7f51rnrxmgxpfryh1qzvqaydj6lffjq9zvnhigg7";
2017-10-03 22:22:25 +00:00
};
2018-09-02 15:01:40 +00:00
nativeBuildInputs = [ meson ninja gettext pkgconfig libxml2 wrapGAppsHook ];
2017-10-03 22:22:25 +00:00
2018-09-02 15:01:40 +00:00
buildInputs = [ gtk3 hicolor-icon-theme ];
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
2018-09-02 15:01:40 +00:00
meta = with stdenv.lib; {
2017-10-03 22:22:25 +00:00
description = "A simple color chooser written in GTK3";
2018-09-17 10:41:24 +00:00
homepage = https://www.hjdskes.nl/projects/gcolor3/;
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
};
}