Unverified Commit 115de3c4 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

hours: init at 0.5.0 (#396527)

parents 5fa3863a 283d2c56
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
  stdenv,
}:

buildGoModule (finalAttrs: {
  pname = "hours";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "dhth";
    repo = "hours";
    tag = "v${finalAttrs.version}";
    hash = "sha256-B9M02THTCrr7ylbbflpkpTFMuoIwV2O0PQKOKbyxYPg=";
  };

  vendorHash = "sha256-5lhn0iTLmXUsaedvtyaL3qWLosmQaQVq5StMDl7pXXI=";

  doCheck = !stdenv.hostPlatform.isDarwin;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "No-frills time tracking toolkit for command line nerds";
    homepage = "https://github.com/dhth/hours";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ilarvne ];
    platforms = lib.platforms.unix;
    mainProgram = "hours";
  };
})