71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
fontconfig,
|
|
libxkbcommon,
|
|
openssl,
|
|
pkg-config,
|
|
xorg,
|
|
vulkan-loader,
|
|
wayland,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "furtherance";
|
|
version = "25.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unobserved-io";
|
|
repo = "Furtherance";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-LyGO+fbsu16Us0+sK0T6HlGq7EwZWSetd+gCIKKEbkk=";
|
|
};
|
|
|
|
cargoHash = "sha256-j/5O40k12rl/gmRc1obo9ImdkZ0Mdrke2PCf6tFCWIo=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
fontconfig
|
|
openssl
|
|
libxkbcommon
|
|
xorg.libX11
|
|
xorg.libXScrnSaver
|
|
xorg.libXcursor
|
|
xorg.libXi
|
|
vulkan-loader
|
|
wayland
|
|
];
|
|
|
|
checkFlags = [
|
|
# panicked at src/tests/timer_tests.rs:30:9
|
|
"--skip=tests::timer_tests::timer_tests::test_split_task_input_basic"
|
|
];
|
|
|
|
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
|
|
patchelf $out/bin/${finalAttrs.pname} \
|
|
--add-rpath ${
|
|
lib.makeLibraryPath [
|
|
vulkan-loader
|
|
libxkbcommon
|
|
wayland
|
|
]
|
|
}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Track your time without being tracked";
|
|
mainProgram = "furtherance";
|
|
homepage = "https://github.com/unobserved-io/Furtherance";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [
|
|
CaptainJawZ
|
|
locnide
|
|
];
|
|
};
|
|
})
|