mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Get rid of shellCrossSystems
We don't need it now that our (minimized) Windows build of Nix succeeds!
This commit is contained in:
parent
8433027e35
commit
98691b46e3
1 changed files with 3 additions and 9 deletions
12
flake.nix
12
flake.nix
|
@ -32,12 +32,6 @@
|
||||||
"armv6l-unknown-linux-gnueabihf"
|
"armv6l-unknown-linux-gnueabihf"
|
||||||
"armv7l-unknown-linux-gnueabihf"
|
"armv7l-unknown-linux-gnueabihf"
|
||||||
"x86_64-unknown-netbsd"
|
"x86_64-unknown-netbsd"
|
||||||
];
|
|
||||||
|
|
||||||
# Nix doesn't yet build on this platform, so we put it in a
|
|
||||||
# separate list. We just use this for `devShells` and
|
|
||||||
# `nixpkgsFor`, which this depends on.
|
|
||||||
shellCrossSystems = crossSystems ++ [
|
|
||||||
"x86_64-w64-mingw32"
|
"x86_64-w64-mingw32"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -83,7 +77,7 @@
|
||||||
in {
|
in {
|
||||||
inherit stdenvs native;
|
inherit stdenvs native;
|
||||||
static = native.pkgsStatic;
|
static = native.pkgsStatic;
|
||||||
cross = lib.genAttrs shellCrossSystems (crossSystem: make-pkgs crossSystem "stdenv");
|
cross = forAllCrossSystems (crossSystem: make-pkgs crossSystem "stdenv");
|
||||||
});
|
});
|
||||||
|
|
||||||
installScriptFor = tarballs:
|
installScriptFor = tarballs:
|
||||||
|
@ -426,8 +420,8 @@
|
||||||
in
|
in
|
||||||
(makeShells "native" nixpkgsFor.${system}.native) //
|
(makeShells "native" nixpkgsFor.${system}.native) //
|
||||||
(lib.optionalAttrs (!nixpkgsFor.${system}.native.stdenv.isDarwin)
|
(lib.optionalAttrs (!nixpkgsFor.${system}.native.stdenv.isDarwin)
|
||||||
(makeShells "static" nixpkgsFor.${system}.static)) //
|
(makeShells "static" nixpkgsFor.${system}.static) //
|
||||||
(lib.genAttrs shellCrossSystems (crossSystem: let pkgs = nixpkgsFor.${system}.cross.${crossSystem}; in makeShell pkgs pkgs.stdenv)) //
|
(forAllCrossSystems (crossSystem: let pkgs = nixpkgsFor.${system}.cross.${crossSystem}; in makeShell pkgs pkgs.stdenv))) //
|
||||||
{
|
{
|
||||||
default = self.devShells.${system}.native-stdenvPackages;
|
default = self.devShells.${system}.native-stdenvPackages;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue