From 5926f0aca6b4ee6c8374a2215b8ccdf9b85ce1a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 12 Dec 2022 23:51:28 +0100 Subject: [PATCH] Fix telme10 overlay --- overlays/telme10.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/overlays/telme10.nix b/overlays/telme10.nix index d9e83d91..f692d629 100644 --- a/overlays/telme10.nix +++ b/overlays/telme10.nix @@ -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 ''; }