biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / itd / default.nix
blobce95eb69bc4fcb7c5230f35acef4c91f671ae39b
1 { stdenv
2 , lib
3 , buildGoModule
4 , fetchFromGitea
5 }:
7 buildGoModule rec {
8   pname = "itd";
9   version = "1.1.0";
11   # https://gitea.elara.ws/Elara6331/itd/tags
12   src = fetchFromGitea {
13     domain = "gitea.elara.ws";
14     owner = "Elara6331";
15     repo = "itd";
16     rev = "v${version}";
17     hash = "sha256-95/9Qy0HhrX+ORuv6g1T4/Eq1hf539lYG5fTkLeY6B0=";
18   };
20   vendorHash = "sha256-ZkAxNs4yDUFBhhmIRtzxQlEQtsa/BTuHy0g3taFcrMM=";
22   preBuild = ''
23     echo r${version} > version.txt
24   '';
26   subPackages = [
27     "."
28     "cmd/itctl"
29   ];
31   postInstall = ''
32     install -Dm644 itd.toml $out/etc/itd.toml
33   '';
35   meta = with lib; {
36     description = "itd is a daemon to interact with the PineTime running InfiniTime";
37     homepage = "https://gitea.elara.ws/Elara6331/itd";
38     license = licenses.gpl3Plus;
39     platforms = platforms.linux;
40     maintainers = with maintainers; [ mindavi raphaelr ];
41   };