Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
1.0 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
nixosTests,
php,
}:
stdenvNoCC.mkDerivation {
pname = "anuko-time-tracker";
version = "1.22.19.5806";
# Project commits directly into master and has no release schedule.
# Fortunately the current version is defined in the 'APP_VERSION' constant in
# /initialize.php so we use its value and set the rev to the commit sha of when the
# constant was last updated.
src = fetchFromGitHub {
owner = "anuko";
repo = "timetracker";
rev = "43a19fcb51a21f6e3169084ac81308a6ef751e63";
hash = "sha256-ZRF9FFbntYY01JflCXkYZyXfyu/x7LNdyOB94UkVFR0=";
};
# There's nothing to build.
dontBuild = true;
installPhase = ''
mkdir $out/
cp -R ./* $out
'';
passthru.tests = {
inherit (nixosTests) anuko-time-tracker;
};
meta = {
description = "Simple, easy to use, open source time tracking system";
license = lib.licenses.sspl;
homepage = "https://github.com/anuko/timetracker/";
platforms = php.meta.platforms;
maintainers = [ ];
};
}