nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 1.1 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 nixosTests, 6 php, 7}: 8 9stdenvNoCC.mkDerivation { 10 pname = "anuko-time-tracker"; 11 version = "1.22.19.5806"; 12 13 # Project commits directly into master and has no release schedule. 14 # Fortunately the current version is defined in the 'APP_VERSION' constant in 15 # /initialize.php so we use its value and set the rev to the commit sha of when the 16 # constant was last updated. 17 src = fetchFromGitHub { 18 owner = "anuko"; 19 repo = "timetracker"; 20 rev = "43a19fcb51a21f6e3169084ac81308a6ef751e63"; 21 hash = "sha256-ZRF9FFbntYY01JflCXkYZyXfyu/x7LNdyOB94UkVFR0="; 22 }; 23 24 # There's nothing to build. 25 dontBuild = true; 26 27 installPhase = '' 28 mkdir $out/ 29 cp -R ./* $out 30 ''; 31 32 passthru.tests = { 33 inherit (nixosTests) anuko-time-tracker; 34 }; 35 36 meta = { 37 description = "Simple, easy to use, open source time tracking system"; 38 license = lib.licenses.sspl; 39 homepage = "https://github.com/anuko/timetracker/"; 40 platforms = php.meta.platforms; 41 maintainers = with lib.maintainers; [ michaelshmitty ]; 42 }; 43}