68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
|
{ stdenv
|
||
|
, fetchFromGitHub
|
||
|
, pantheon
|
||
|
, pkgconfig
|
||
|
, meson
|
||
|
, ninja
|
||
|
, vala
|
||
|
, python3
|
||
|
, desktop-file-utils
|
||
|
, gtk3
|
||
|
, granite
|
||
|
, libgee
|
||
|
, libcanberra
|
||
|
, elementary-icon-theme
|
||
|
, wrapGAppsHook
|
||
|
}:
|
||
|
|
||
|
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";
|
||
|
|
||
|
repoName = "screenshot";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "elementary";
|
||
|
repo = repoName;
|
||
|
rev = version;
|
||
|
sha256 = "179ib2ldvhdx3hks5lqyx2cvlkk3j1qccvlfwh2yd2bl79zpk3ma";
|
||
|
};
|
||
|
|
||
|
passthru = {
|
||
|
updateScript = pantheon.updateScript {
|
||
|
attrPath = "pantheon.${pname}";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
desktop-file-utils
|
||
|
meson
|
||
|
ninja
|
||
|
pkgconfig
|
||
|
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 stdenv.lib; {
|
||
|
description = "Screenshot tool designed for elementary OS";
|
||
|
homepage = "https://github.com/elementary/screenshot";
|
||
|
license = licenses.lgpl3;
|
||
|
platforms = platforms.linux;
|
||
|
maintainers = pantheon.maintainers;
|
||
|
};
|
||
|
}
|