nixpkgs-suyu/pkgs/desktops/pantheon/apps/elementary-screenshot-tool/default.nix

69 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
2021-01-17 03:21:50 +01:00
, pkg-config
, meson
, ninja
, vala
, python3
, desktop-file-utils
, gtk3
, granite
, libgee
, libcanberra
, elementary-icon-theme
, wrapGAppsHook
}:
2018-08-20 22:31:18 +02:00
stdenv.mkDerivation rec {
pname = "elementary-screenshot-tool"; # This will be renamed to "screenshot" soon. See -> https://github.com/elementary/screenshot/pull/93
version = "1.7.1";
2018-08-20 22:31:18 +02:00
repoName = "screenshot";
2018-08-20 22:31:18 +02:00
src = fetchFromGitHub {
owner = "elementary";
repo = repoName;
2018-08-20 22:31:18 +02:00
rev = version;
2020-09-04 01:43:09 +02:00
sha256 = "sha256-qo55fzp0ieYF5I5uxnCQY066mege06InHL3B3ahYMZ0=";
2018-08-20 22:31:18 +02:00
};
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
2018-08-20 22:31:18 +02:00
};
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
2018-08-20 22:31:18 +02:00
python3
vala
wrapGAppsHook
];
buildInputs = [
elementary-icon-theme
granite
gtk3
libcanberra
libgee
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with lib; {
2018-08-20 22:31:18 +02:00
description = "Screenshot tool designed for elementary OS";
homepage = "https://github.com/elementary/screenshot";
2018-08-20 22:31:18 +02:00
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}