Commit 0162a6c2 authored by Rick van Schijndel's avatar Rick van Schijndel Committed by Rick van Schijndel
Browse files

itd: init at 0.0.9



Note that (in my experience) the itd.toml file appears to be required for this to work.

Co-authored-by: default avatarraphaelr <raphael-git@tapesoftware.net>
parent b0a6ab09
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, buildGoModule
, fetchFromGitea
}:

buildGoModule rec {
  pname = "itd";
  version = "0.0.9";

  # https://gitea.arsenm.dev/Arsen6331/itd/tags
  src = fetchFromGitea {
    domain = "gitea.arsenm.dev";
    owner = "Arsen6331";
    repo = "itd";
    rev = "v${version}";
    hash = "sha256-FefffF8YIEcB+eglifNWuuK7H5A1YXyxxZOXz1a8HfY=";
  };

  vendorHash = "sha256-LFzrpKQQ4nFoK4vVTzJDQ5OGDe1y5BSfXPX+FRVunjQ=";

  preBuild = ''
    echo r${version} > version.txt
  '';

  subPackages = [
    "."
    "cmd/itctl"
  ];

  postInstall = ''
    install -Dm644 itd.toml $out/etc/itd.toml
  '';

  meta = with lib; {
    description = "itd is a daemon to interact with the PineTime running InfiniTime";
    homepage = "https://gitea.arsenm.dev/Arsen6331/itd";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ mindavi raphaelr ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2781,6 +2781,8 @@ with pkgs;
  itch = callPackage ../games/itch {};
  itd = callPackage ../applications/misc/itd { };
  lastpass-cli = callPackage ../tools/security/lastpass-cli { };
  leetcode-cli = callPackage ../applications/misc/leetcode-cli { };