nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 34 lines 774 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6 stdenv, 7}: 8 9buildGoModule (finalAttrs: { 10 pname = "hours"; 11 version = "0.5.0"; 12 13 src = fetchFromGitHub { 14 owner = "dhth"; 15 repo = "hours"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-B9M02THTCrr7ylbbflpkpTFMuoIwV2O0PQKOKbyxYPg="; 18 }; 19 20 vendorHash = "sha256-5lhn0iTLmXUsaedvtyaL3qWLosmQaQVq5StMDl7pXXI="; 21 22 doCheck = !stdenv.hostPlatform.isDarwin; 23 24 passthru.updateScript = nix-update-script { }; 25 26 meta = { 27 description = "No-frills time tracking toolkit for command line nerds"; 28 homepage = "https://github.com/dhth/hours"; 29 license = lib.licenses.mit; 30 maintainers = [ lib.maintainers.ilarvne ]; 31 platforms = lib.platforms.unix; 32 mainProgram = "hours"; 33 }; 34})