diff options
| author | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-10-08 14:13:57 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-10-08 14:13:57 +0000 |
| commit | 0a57614abb7365c530a4a1a3317cfe76ea012603 (patch) | |
| tree | a669afe7a59c9e6ef211be51952c5a59a78f49fa | |
| parent | c797173d37d64b92d5cfa225dcb63d9c69bd31da (diff) | |
| download | focaccia-qemu-0a57614abb7365c530a4a1a3317cfe76ea012603.tar.gz focaccia-qemu-0a57614abb7365c530a4a1a3317cfe76ea012603.zip | |
Add basic flake for building QEMU for Focaccia
| -rw-r--r-- | flake.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000000..6b71eedc66 --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "QEMU with Focaccia plugins"; + + inputs = { + self.submodules = true; + + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = {self, flake-utils, nixpkgs}: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in { + packages.default = pkgs.qemu.overrideAttrs (old: { + pname = "qemu-local"; + version = "git"; + src = ./.; + patches = []; + nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ pkgs.git pkgs.cacert ]; + + SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; + GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; + NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; + }); + }); +} + |