3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/pantheon/apps/elementary-calculator/default.nix

70 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, pantheon
, pkgconfig
, meson
, ninja
, vala
, desktop-file-utils
, libxml2
, gtk3
, python3
, granite
, libgee
, elementary-icon-theme
, appstream
, wrapGAppsHook
}:
2018-08-20 21:31:18 +01:00
stdenv.mkDerivation rec {
pname = "elementary-calculator";
version = "1.5.5";
2018-08-20 21:31:18 +01:00
repoName = "calculator";
2018-08-20 21:31:18 +01:00
src = fetchFromGitHub {
owner = "elementary";
repo = repoName;
2018-08-20 21:31:18 +01:00
rev = version;
sha256 = "1csxsr2c8qvl97xz9ahwn91z095nzgr0i1mbcb1spljll2sr9lkj";
2018-08-20 21:31:18 +01:00
};
passthru = {
updateScript = pantheon.updateScript {
attrPath = "pantheon.${pname}";
2018-08-20 21:31:18 +01:00
};
};
nativeBuildInputs = [
appstream
desktop-file-utils
libxml2
meson
ninja
pkgconfig
python3
vala
wrapGAppsHook
];
buildInputs = [
elementary-icon-theme
granite
gtk3
libgee
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with stdenv.lib; {
homepage = "https://github.com/elementary/calculator";
2018-08-20 21:31:18 +01:00
description = "Calculator app designed for elementary OS";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}