2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, gettext, libxml2, fetchurl, pkgconfig, libcanberra-gtk3
|
2018-09-03 23:01:35 +01:00
|
|
|
, gtk3, glib, meson, ninja, python3, wrapGAppsHook, appstream-glib, desktop-file-utils
|
2019-04-17 01:38:26 +01:00
|
|
|
, gnome3, gsettings-desktop-schemas }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:04:59 +00:00
|
|
|
let
|
|
|
|
pname = "gnome-screenshot";
|
2020-03-11 16:06:31 +00:00
|
|
|
version = "3.36.0";
|
2018-03-22 19:04:59 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-03-11 16:06:31 +00:00
|
|
|
sha256 = "0rhj6fkpxfm26jv3vsn7yb2ybkc2k86ggy23nxa945q74y4msj9k";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
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-09-03 23:01:35 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext appstream-glib libxml2 desktop-file-utils python3 wrapGAppsHook ];
|
2018-03-22 19:04:59 +00:00
|
|
|
buildInputs = [
|
2019-02-13 21:47:50 +00:00
|
|
|
gtk3 glib libcanberra-gtk3 gnome3.adwaita-icon-theme
|
2019-04-17 01:38:26 +01:00
|
|
|
gsettings-desktop-schemas
|
2017-10-04 22:50:14 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:04:59 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2019-09-09 00:38:31 +01:00
|
|
|
packageName = pname;
|
2018-03-22 19:04:59 +00:00
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11: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";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|