depot/third_party/nixpkgs/pkgs/applications/office/khronos/default.nix
Default email 77976348d2 Project import generated by Copybara.
GitOrigin-RevId: 9aeeb7574fb784eaf6395f4400705b5f619e6cc3
2021-10-17 05:12:59 +03:00

69 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, vala
, pkg-config
, desktop-file-utils
, python3
, glib
, gtk4
, json-glib
, libadwaita
, libgee
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
pname = "khronos";
version = "3.6.0";
src = fetchFromGitHub {
owner = "lainsce";
repo = pname;
rev = version;
sha256 = "sha256-AETyVCBUuBzHwDgTkGRIokFYwcmXrb/F85J5GEIu4dE=";
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
vala
pkg-config
python3
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
json-glib
libadwaita
libgee
];
postPatch = ''
chmod +x build-aux/post_install.py
patchShebangs build-aux/post_install.py
# https://github.com/lainsce/khronos/pull/75
substituteInPlace build-aux/post_install.py \
--replace 'gtk-update-icon-cache' 'gtk4-update-icon-cache'
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
description = "Track each task's time in a simple inobtrusive way";
homepage = "https://github.com/lainsce/khronos";
maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
platforms = platforms.linux;
license = licenses.gpl3Plus;
};
}