furtherance: init at 1.5.3

This commit is contained in:
Gabriel Arazas 2022-08-11 13:43:22 +08:00
parent 6c804aff58
commit 453da58c5f
2 changed files with 74 additions and 0 deletions

View File

@ -14,6 +14,7 @@ let
clidle = callPackage ./clidle.nix { };
domterm = callPackage ./domterm { };
freerct = callPackage ./freerct.nix { };
furtherance = callPackage ./furtherance { };
distant = callPackage ./distant.nix { };
doggo = callPackage ./doggo.nix { };
gol-c = callPackage ./gol-c.nix { };

View File

@ -0,0 +1,73 @@
{ stdenv
, lib
, fetchFromGitHub
, gtk4
, wrapGAppsHook4
, meson
, ninja
, rustPlatform
, libadwaita
, gobject-introspection
, sqlite
, desktop-file-utils
, glib
, pkg-config
, dbus
, appstream-glib
, python3
, gettext
}:
stdenv.mkDerivation rec {
pname = "furtherance";
version = "1.5.3";
src = fetchFromGitHub {
owner = "lakoliu";
repo = "Furtherance";
rev = "v${version}";
sha256 = "sha256-GKak1P5QX9Y7bXD3E+QPCbi1Auv1mgSYKgbLz7kc3NQ=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "sha256-priZzcuWmII33VQpn7d/tDCNZeF2mj02b5OhdxcU7tc";
};
nativeBuildInputs = [
appstream-glib
gettext
meson
ninja
rustPlatform.cargoSetupHook
rustPlatform.rust.cargo
rustPlatform.rust.rustc
wrapGAppsHook4
glib
pkg-config
];
buildInputs = [
dbus
desktop-file-utils
libadwaita
gobject-introspection
gtk4
python3
sqlite
];
postPatch = ''
chmod +x ./build-aux/meson/postinstall.py
patchShebangs ./build-aux/meson/postinstall.py
substituteInPlace ./build-aux/meson/postinstall.py \
--replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
'';
meta = with lib; {
homepage = "https://github.com/lakoliu/Furtherance";
description = "Private time tracking app";
license = licenses.gpl3Only;
};
}