aboutsummaryrefslogtreecommitdiff
path: root/nix/package.nix
blob: 149fb5822f644ec0b4f545c9dae2873f46143229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  src,
  version,

  lib,
  stdenv,
  nix-update-script,
  nim,
}:

stdenv.mkDerivation (final: {
  pname = "tickwatch";
  inherit version src;

  buildInputs = [ nim ];
  doCheck = true;
  makeFlags = [
    "NIM_FLAGS=--nimcache:."
    "VERSION=v${final.version}"
  ];
  installFlags = [ "DESTDIR=$(out)" ];

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

  meta = {
    homepage = "https://cgit.euxane.eu/tickwatch/about/";
    changelog = "https://cgit.euxane.eu/tickwatch/tree/changelog.md?h=v${final.version}";
    description = "Terminal monitoring and visualization tool";
    license = lib.licenses.eupl12;
    maintainers = with lib.maintainers; [ euxane ];
    mainProgram = "tickwatch";
  };
})