forked from DGNum/liminix
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:
parent
58cce5b544
commit
cd116ad9e7
2 changed files with 10 additions and 3 deletions
|
@ -41,7 +41,14 @@ let
|
|||
borderVm = ((import <nixpkgs/nixos/lib/eval-config.nix>) {
|
||||
system = builtins.currentSystem;
|
||||
modules = [
|
||||
({ ... } : { nixpkgs.overlays = [ overlay ]; })
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
go-l2tp = final.callPackage ./pkgs/go-l2tp {};
|
||||
tufted = final.callPackage ./pkgs/tufted {};
|
||||
})
|
||||
];
|
||||
}
|
||||
(import ./bordervm-configuration.nix)
|
||||
borderVmConf
|
||||
];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
buildGoModule
|
||||
, fetchFromGitHub
|
||||
, pppBuild
|
||||
, ppp
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
|
@ -16,7 +16,7 @@ buildGoModule rec {
|
|||
};
|
||||
|
||||
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
|
||||
grep bin/kl2tp cmd/kpppoed/l2tpd_kl2tpd.go
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue