2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, gettext, libxml2, fetchurl, pkgconfig, libcanberra-gtk3
|
2017-10-04 22:50:14 +01:00
|
|
|
, bash, gtk3, glib, meson, ninja, wrapGAppsHook, appstream-glib
|
2018-01-08 16:36:11 +00:00
|
|
|
, gnome3, librsvg, gdk_pixbuf }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/postinstall.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/postinstall.py
|
|
|
|
'';
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
|
2016-09-18 20:35:23 +01:00
|
|
|
propagatedBuildInputs = [ gdk_pixbuf gnome3.defaultIconTheme librsvg ];
|
|
|
|
|
2018-01-08 16:36:11 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext appstream-glib libxml2 wrapGAppsHook ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ bash gtk3 glib libcanberra-gtk3
|
|
|
|
gnome3.gsettings-desktop-schemas ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
patches = [
|
|
|
|
./prevent-cache-updates.patch
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://en.wikipedia.org/wiki/GNOME_Screenshot;
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Utility used in the GNOME desktop environment for taking screenshots";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|