mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
Add FreeBSD and NetBSD cross to Nix's flake
This commit is contained in:
parent
d40e91440d
commit
e44d2a6bbe
1 changed files with 13 additions and 3 deletions
16
flake.nix
16
flake.nix
|
@ -25,8 +25,11 @@
|
||||||
linuxSystems = linux32BitSystems ++ linux64BitSystems;
|
linuxSystems = linux32BitSystems ++ linux64BitSystems;
|
||||||
darwinSystems = [ "x86_64-darwin" "aarch64-darwin" ];
|
darwinSystems = [ "x86_64-darwin" "aarch64-darwin" ];
|
||||||
systems = linuxSystems ++ darwinSystems;
|
systems = linuxSystems ++ darwinSystems;
|
||||||
|
|
||||||
crossSystems = [ "armv6l-linux" "armv7l-linux" ];
|
crossSystems = [
|
||||||
|
"armv6l-linux" "armv7l-linux"
|
||||||
|
"x86_64-freebsd13" "x86_64-netbsd"
|
||||||
|
];
|
||||||
|
|
||||||
stdenvs = [ "gccStdenv" "clangStdenv" "clang11Stdenv" "stdenv" "libcxxStdenv" "ccacheStdenv" ];
|
stdenvs = [ "gccStdenv" "clangStdenv" "clang11Stdenv" "stdenv" "libcxxStdenv" "ccacheStdenv" ];
|
||||||
|
|
||||||
|
@ -94,7 +97,14 @@
|
||||||
nixpkgsFor = forAllSystems
|
nixpkgsFor = forAllSystems
|
||||||
(system: let
|
(system: let
|
||||||
make-pkgs = crossSystem: stdenv: import nixpkgs {
|
make-pkgs = crossSystem: stdenv: import nixpkgs {
|
||||||
inherit system crossSystem;
|
localSystem = {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
crossSystem = if crossSystem == null then null else {
|
||||||
|
system = crossSystem;
|
||||||
|
} // lib.optionalAttrs (crossSystem == "x86_64-freebsd13") {
|
||||||
|
useLLVM = true;
|
||||||
|
};
|
||||||
overlays = [
|
overlays = [
|
||||||
(overlayFor (p: p.${stdenv}))
|
(overlayFor (p: p.${stdenv}))
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue