list pkgs we need in bordervm build

it's a bit silly trying to build it with the whole liminix overlay
when it's a nixos system not a liminix system
This commit is contained in:
Daniel Barlow 2024-05-22 18:44:12 +01:00 committed by Raito Bezarius
parent 58cce5b544
commit cd116ad9e7
2 changed files with 10 additions and 3 deletions

View file

@ -41,7 +41,14 @@ let
borderVm = ((import <nixpkgs/nixos/lib/eval-config.nix>) { borderVm = ((import <nixpkgs/nixos/lib/eval-config.nix>) {
system = builtins.currentSystem; system = builtins.currentSystem;
modules = [ modules = [
({ ... } : { nixpkgs.overlays = [ overlay ]; }) {
nixpkgs.overlays = [
(final: prev: {
go-l2tp = final.callPackage ./pkgs/go-l2tp {};
tufted = final.callPackage ./pkgs/tufted {};
})
];
}
(import ./bordervm-configuration.nix) (import ./bordervm-configuration.nix)
borderVmConf borderVmConf
]; ];

View file

@ -1,7 +1,7 @@
{ {
buildGoModule buildGoModule
, fetchFromGitHub , fetchFromGitHub
, pppBuild , ppp
}: }:
buildGoModule rec { buildGoModule rec {
@ -16,7 +16,7 @@ buildGoModule rec {
}; };
patchPhase = '' patchPhase = ''
sed -i.bak -e 's:/usr/sbin/pppd:${pppBuild}/bin/pppd:' cmd/kl2tpd/pppd.go sed -i.bak -e 's:/usr/sbin/pppd:${ppp}/bin/pppd:' cmd/kl2tpd/pppd.go
sed -i.bak -e 's:/usr/sbin/kl2tpd:${placeholder "out"}/bin/kl2tpd:' cmd/kpppoed/l2tpd_kl2tpd.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 grep bin/kl2tp cmd/kpppoed/l2tpd_kl2tpd.go
''; '';