3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/core/gnome-screenshot/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-17 02:21:50 +00:00
{ lib, stdenv, gettext, libxml2, libhandy, fetchurl, pkg-config, libcanberra-gtk3
, gtk3, glib, meson, ninja, python3, wrapGAppsHook, appstream-glib, desktop-file-utils
, gnome, gsettings-desktop-schemas }:
2018-03-22 19:04:59 +00:00
let
pname = "gnome-screenshot";
version = "41.0";
2018-03-22 19:04:59 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${name}.tar.xz";
sha256 = "Stt97JJkKPdCY9V5ZnPPFC5HILbnaPVGio0JM/mMlZc=";
};
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
'';
2021-01-17 02:21:50 +00:00
nativeBuildInputs = [ meson ninja pkg-config gettext appstream-glib libxml2 desktop-file-utils python3 wrapGAppsHook ];
2018-03-22 19:04:59 +00:00
buildInputs = [
gtk3 glib libcanberra-gtk3 libhandy gnome.adwaita-icon-theme
gsettings-desktop-schemas
2017-10-04 22:50:14 +01:00
];
2018-03-22 19:04:59 +00:00
passthru = {
updateScript = gnome.updateScript {
2019-09-09 00:38:31 +01:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-22 19:04:59 +00:00
};
};
meta = with lib; {
homepage = "https://en.wikipedia.org/wiki/GNOME_Screenshot";
description = "Utility used in the GNOME desktop environment for taking screenshots";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}