Skip to content

Instantly share code, notes, and snippets.

View Gaelan's full-sized avatar
🏳️‍⚧️

Gaelan Steele Gaelan

🏳️‍⚧️
View GitHub Profile
@mroi
mroi / linux.nix
Last active March 13, 2024 16:50
cross-compile a Linux kernel on Darwin using Nix
let cross = self: super: {
# https://github.com/NixOS/nixpkgs/pull/113225
buildLinux = attrs: self.callPackage "${self.fetchFromGitHub {
owner = "mroi";
repo = "nixpkgs";
rev = "patch-linux";
sha256 = "07i6wwf4vh5ahnkp3wvyzdiaqhrxakjjxbdrlwdviis777p9gl5v";
}}/pkgs/os-specific/linux/kernel/generic.nix" attrs;