nix-config/overlays/telme10.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
655 B
Nix
Raw Normal View History

2022-12-17 21:56:07 +01:00
{ buildGoModule
2022-12-11 02:07:56 +01:00
, fetchFromGitHub
}:
buildGoModule {
2022-12-12 23:51:28 +01:00
pname = "telme10";
2022-12-11 02:07:56 +01:00
version = "unstable";
src = fetchFromGitHub {
owner = "c3d2";
2022-12-12 23:51:28 +01:00
repo = "telme10";
2022-12-11 02:07:56 +01:00
rev = "5962266909bada6993a500ecce8707ec486d4cc0";
2022-12-12 23:51:28 +01:00
sha256 = "sha256-i6jKT2on8s9z5bLhCC4nYoLbngcbfTJykMW9JGc0/dY=";
2022-12-11 02:07:56 +01:00
};
2022-12-12 23:51:28 +01:00
postPatch = ''
substituteInPlace telme10.service \
--replace "/usr/local/bin/telme10" "${placeholder "out"}/bin/telme10 [::]:23"
'';
vendorSha256 = "sha256-SzYAXvWE2qt7aPX99AhgTQe7tmGuaBuOUZNNg7+CvCQ=";
2022-12-11 02:07:56 +01:00
postInstall = ''
2022-12-12 23:51:28 +01:00
install -Dt $out/etc/systemd/system telme10.service
install -Dt $out/etc/systemd/system telme10.socket
2022-12-11 02:07:56 +01:00
'';
}