about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2022-11-07 21:55:53 +0100
committerRick van Schijndel <Mindavi@users.noreply.github.com>2022-11-11 20:04:42 +0100
commit0162a6c27999d15cbe65b7600de8a16f7a1e10a3 (patch)
tree3a1e4c17fb7e3915f32ede11de6428519b08a875 /pkgs
parentb0a6ab09d50c8de907bd87ba3fcf538b9fe212dd (diff)
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: raphaelr <raphael-git@tapesoftware.net>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/itd/default.nix43
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/misc/itd/default.nix b/pkgs/applications/misc/itd/default.nix
new file mode 100644
index 0000000000000..facbda32238b7
--- /dev/null
+++ b/pkgs/applications/misc/itd/default.nix
@@ -0,0 +1,43 @@
+{ 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 ];
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 8bf2278910d0a..d20b4d8e8d403 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -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 { };