2021-01-17 03:21:50 +01:00
|
|
|
{ lib, stdenv, gettext, libxml2, libhandy, fetchurl, pkg-config, libcanberra-gtk3
|
2018-09-04 00:01:35 +02:00
|
|
|
, gtk3, glib, meson, ninja, python3, wrapGAppsHook, appstream-glib, desktop-file-utils
|
2019-04-17 02:38:26 +02:00
|
|
|
, gnome3, gsettings-desktop-schemas }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-22 20:04:59 +01:00
|
|
|
let
|
|
|
|
pname = "gnome-screenshot";
|
2020-08-21 20:31:48 +02:00
|
|
|
version = "3.38.0";
|
2018-03-22 20:04:59 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-08-21 20:31:48 +02:00
|
|
|
sha256 = "1h4zsaybjrlkfcrvriyybg4gfr7v9d1ndh2p516k94ad2gfx6mp5";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-10-04 23:50:14 +02:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/postinstall.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/postinstall.py
|
|
|
|
'';
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2021-01-17 03:21:50 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext appstream-glib libxml2 desktop-file-utils python3 wrapGAppsHook ];
|
2018-03-22 20:04:59 +01:00
|
|
|
buildInputs = [
|
2020-08-21 20:31:48 +02:00
|
|
|
gtk3 glib libcanberra-gtk3 libhandy gnome3.adwaita-icon-theme
|
2019-04-17 02:38:26 +02:00
|
|
|
gsettings-desktop-schemas
|
2017-10-04 23:50:14 +02:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-22 20:04:59 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2019-09-09 01:38:31 +02:00
|
|
|
packageName = pname;
|
2018-03-22 20:04:59 +01:00
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://en.wikipedia.org/wiki/GNOME_Screenshot";
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "Utility used in the GNOME desktop environment for taking screenshots";
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|