liminix-fork/pkgs/go-l2tp/default.nix

28 lines
615 B
Nix
Raw Normal View History

2023-02-14 23:08:52 +01:00
{
buildGoModule
, fetchFromGitHub
, pppBuild
2023-02-14 23:08:52 +01:00
}:
buildGoModule rec {
pname = "go-l2tp";
version = "0";
src = fetchFromGitHub {
repo = "go-l2tp";
owner = "katalix";
rev = "570d763";
hash= "sha256-R8ImKPkPBC+FvzKOBEZ3VxQ12dEjtfRa7AH94xMsAGA=";
};
patchPhase = ''
sed -i.bak -e 's:/usr/sbin/pppd:${pppBuild}/bin/pppd:' cmd/kl2tpd/pppd.go
sed -i.bak -e 's:/usr/sbin/kl2tpd:${placeholder "out"}/bin/kl2tpd:' cmd/kpppoed/l2tpd_kl2tpd.go
grep bin/kl2tp cmd/kpppoed/l2tpd_kl2tpd.go
'';
2023-02-14 23:08:52 +01:00
doCheck = false;
vendorHash = "sha256-hOkhJhToN/VJwjQmnQJSPGz26/YDR2Ch+1yeW51OF+U=";
}