patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] fix: config support with vms
@ 2022-09-20 11:09 Ville Ilvonen
  2022-09-20 11:31 ` Alyssa Ross
  0 siblings, 1 reply; 7+ messages in thread
From: Ville Ilvonen @ 2022-09-20 11:09 UTC (permalink / raw)
  To: devel; +Cc: Ville Ilvonen

with config.nix, the build of vms fails with
error: undefined variable 'pkgs'
..
  49|
  50|   kernel = pkgs.linux_latest.override {
    |            ^

This fixes the issue for all default vms

Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
---
 vm/app/catgirl/default.nix | 1 +
 vm/app/lynx/default.nix    | 1 +
 vm/sys/net/default.nix     | 1 +
 3 files changed, 3 insertions(+)

diff --git a/vm/app/catgirl/default.nix b/vm/app/catgirl/default.nix
index 61f1462..c33f512 100644
--- a/vm/app/catgirl/default.nix
+++ b/vm/app/catgirl/default.nix
@@ -13,6 +13,7 @@ config.pkgs.pkgsStatic.callPackage (
 }:
 
 let
+  inherit (config) pkgs;
   inherit (lib) cleanSource cleanSourceWith concatMapStringsSep hasSuffix;
 
   packages = [
diff --git a/vm/app/lynx/default.nix b/vm/app/lynx/default.nix
index ba715ec..f06ef1f 100644
--- a/vm/app/lynx/default.nix
+++ b/vm/app/lynx/default.nix
@@ -13,6 +13,7 @@ config.pkgs.pkgsStatic.callPackage (
 }:
 
 let
+  inherit (config) pkgs;
   inherit (lib) cleanSource cleanSourceWith concatMapStringsSep hasSuffix;
 
   packages = [
diff --git a/vm/sys/net/default.nix b/vm/sys/net/default.nix
index dfc7c35..b3dac9a 100644
--- a/vm/sys/net/default.nix
+++ b/vm/sys/net/default.nix
@@ -14,6 +14,7 @@ config.pkgs.pkgsStatic.callPackage (
 }:
 
 let
+  inherit (config) pkgs;
   inherit (lib) cleanSource cleanSourceWith concatMapStringsSep hasSuffix;
 
   connman = connmanMinimal;
-- 
2.37.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-20 12:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-20 11:09 [PATCH] fix: config support with vms Ville Ilvonen
2022-09-20 11:31 ` Alyssa Ross
2022-09-20 11:34   ` Ville Ilvonen
2022-09-20 11:42     ` Alyssa Ross
2022-09-20 11:46       ` Ville Ilvonen
2022-09-20 11:59         ` Alyssa Ross
2022-09-20 12:17           ` Ville Ilvonen

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).