2022-11-21 17:40:18 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitea
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "itd";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "1.0.0";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
# https://gitea.arsenm.dev/Arsen6331/itd/tags
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "gitea.arsenm.dev";
|
|
|
|
owner = "Arsen6331";
|
|
|
|
repo = "itd";
|
|
|
|
rev = "v${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-von/gvKnm69r/Z3Znm9IW97LfRq4v1cpv5z05h0ahek=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
vendorHash = "sha256-Sj1ASrb80AgZDfIwmSspArRXSaxP8FlXYi9xyWfCYWk=";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|