Skip to content

Commit 13a8b65

Browse files
committed
flake: build and export SAP libvirt
This builds and exports the libvirt from the Cyberus "gardenlinux[-dev]" branch. On-behalf-of: SAP [email protected]
1 parent 64a0757 commit 13a8b65

File tree

4 files changed

+533
-0
lines changed

4 files changed

+533
-0
lines changed

flake.lock

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
cloud-hypervisor-src.flake = false;
1515
rust-overlay.url = "github:oxalica/rust-overlay";
1616
rust-overlay.inputs.nixpkgs.follows = "nixpkgs-25-05";
17+
# Make sure the submodule from a local libvirt checkout is populated.
18+
libvirt-src.url = "git+https://github.com/cyberus-technology/libvirt?ref=gardenlinux&submodules=1";
19+
libvirt-src.flake = false;
1720
};
1821

1922
outputs =
@@ -62,6 +65,19 @@
6265
};
6366
in
6467
artifacts.default;
68+
libvirt = pkgs.libvirt.overrideAttrs ({
69+
src = inputs.libvirt-src;
70+
patches =
71+
let
72+
patchSrc = ./patches/libvirt;
73+
in
74+
(pkgs.lib.pipe patchSrc [
75+
builtins.readDir
76+
builtins.attrNames
77+
# To fully-qualified path.
78+
(map (f: "${patchSrc}/${f}"))
79+
]);
80+
});
6581
};
6682

6783
checks = import ./checks { inherit pkgs pre-commit-hooks-run; };

0 commit comments

Comments
 (0)