2020-02-18 18:05:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2020-02-18 18:05:55 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, pkg-config
|
|
|
|
, desktop-file-utils
|
|
|
|
, pantheon
|
|
|
|
, python3
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libgee
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "khronos";
|
2020-04-01 14:47:47 +01:00
|
|
|
version = "1.0.8";
|
2020-02-18 18:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lainsce";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-04-01 14:47:47 +01:00
|
|
|
sha256 = "0d5ma1d86lh2apagwrwk0d1v1cm3fifjivhf530nlznb67vi1x80";
|
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 = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2020-02-18 18:05:55 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Track each task's time in a simple inobtrusive way";
|
|
|
|
homepage = "https://github.com/lainsce/khronos";
|
2020-05-08 08:08:53 +01:00
|
|
|
maintainers = with maintainers; [ xiorcale ] ++ pantheon.maintainers;
|
2020-02-18 18:05:55 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|