nixpkgs/pkgs/applications/office/khronos/default.nix

65 lines
1.1 KiB
Nix
Raw Normal View History

2020-02-18 18:05:55 +00:00
{ stdenv
, fetchFromGitHub
, meson
, ninja
, vala
, pkg-config
, desktop-file-utils
, pantheon
, python3
, glib
, gtk3
, json-glib
, libgee
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "khronos";
2020-03-05 20:22:27 +00:00
version = "1.0.6";
2020-02-18 18:05:55 +00:00
src = fetchFromGitHub {
owner = "lainsce";
repo = pname;
rev = version;
2020-03-05 20:22:27 +00:00
sha256 = "0s6yx05k0x90bmdmr61hw07nf9a1kyvvk6gwlg8m97zq1n3qc0f3";
2020-02-18 18:05:55 +00:00
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
vala
pkg-config
python3
wrapGAppsHook
];
buildInputs = [
glib
gtk3
json-glib
libgee
pantheon.granite
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = {
updateScript = pantheon.updateScript {
attrPath = pname;
};
};
meta = with stdenv.lib; {
description = "Track each task's time in a simple inobtrusive way";
homepage = "https://github.com/lainsce/khronos";
maintainers = with maintainers; [ kjuvi ] ++ pantheon.maintainers;
platforms = platforms.linux;
license = licenses.gpl3;
};
}