Skip to content

Commit 76e9fc7

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 philipp.schuster@sap.com
1 parent 64a0757 commit 76e9fc7

4 files changed

Lines changed: 533 additions & 0 deletions

File tree

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 = let
71+
patchSrc = ./patches/libvirt;
72+
in (
73+
pkgs.lib.pipe patchSrc [
74+
builtins.readDir
75+
builtins.attrNames
76+
# To fully-qualified path.
77+
(map (f: "${patchSrc}/${f}"))
78+
]
79+
);
80+
});
6581
};
6682

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

0 commit comments

Comments
 (0)