Skip to content

Commit e28e1e3

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 e28e1e3

File tree

4 files changed

+532
-0
lines changed

4 files changed

+532
-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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
cloud-hypervisor-src.flake = false;
1515
rust-overlay.url = "github:oxalica/rust-overlay";
1616
rust-overlay.inputs.nixpkgs.follows = "nixpkgs-25-05";
17+
libvirt-src.url = "git+https://github.com/cyberus-technology/libvirt?ref=gardenlinux&submodules=1";
18+
libvirt-src.flake = false;
1719
};
1820

1921
outputs =
@@ -62,6 +64,19 @@
6264
};
6365
in
6466
artifacts.default;
67+
libvirt = pkgs.libvirt.overrideAttrs ({
68+
src = inputs.libvirt-src;
69+
patches =
70+
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+
});
6580
};
6681

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

0 commit comments

Comments
 (0)