Fix telme10 overlay

This commit is contained in:
Sandro - 2022-12-12 23:51:28 +01:00
parent 5640331aef
commit 5926f0aca6
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 12 additions and 5 deletions

View File

@ -4,18 +4,25 @@
}:
buildGoModule {
pname = "telmet10";
pname = "telme10";
version = "unstable";
src = fetchFromGitHub {
owner = "c3d2";
repo = "telmet10";
repo = "telme10";
rev = "5962266909bada6993a500ecce8707ec486d4cc0";
sha256 = "";
sha256 = "sha256-i6jKT2on8s9z5bLhCC4nYoLbngcbfTJykMW9JGc0/dY=";
};
postPatch = ''
substituteInPlace telme10.service \
--replace "/usr/local/bin/telme10" "${placeholder "out"}/bin/telme10 [::]:23"
'';
vendorSha256 = "sha256-SzYAXvWE2qt7aPX99AhgTQe7tmGuaBuOUZNNg7+CvCQ=";
postInstall = ''
install -t $out/etc/systemd/system telme10.service
install -t $out/etc/systemd/system telme10.socket
install -Dt $out/etc/systemd/system telme10.service
install -Dt $out/etc/systemd/system telme10.socket
'';
}