mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-21 13:29:36 +00:00
deprecate default.nix
This commit is contained in:
parent
db9c28db76
commit
504108a43a
20
default.nix
20
default.nix
@ -1,10 +1,9 @@
|
||||
let sources = import ./nix/sources.nix;
|
||||
in { system ? builtins.currentSystem, nixpkgs ? sources.nixpkgs,
|
||||
multiversal_src ? if builtins.pathExists ./multiversal/make-multiverse.rb then
|
||||
./multiversal
|
||||
else
|
||||
sources.multiversal,
|
||||
... }:
|
||||
in { system ? builtins.currentSystem, nixpkgs ? sources.nixpkgs
|
||||
, multiversal_src ? if builtins.pathExists ./multiversal/make-multiverse.rb then
|
||||
./multiversal
|
||||
else
|
||||
sources.multiversal, ... }:
|
||||
|
||||
let
|
||||
retroPlatforms = import nix/platforms.nix;
|
||||
@ -30,8 +29,7 @@ let
|
||||
crossSystem = plat;
|
||||
config = { allowUnsupportedSystem = true; };
|
||||
}) retroPlatforms;
|
||||
targetPkgs = lib.mapAttrs (name: cross:
|
||||
cross.buildPackages) crossPkgs;
|
||||
targetPkgs = lib.mapAttrs (name: cross: cross.buildPackages) crossPkgs;
|
||||
|
||||
shell = lib.mapAttrs (name: cross:
|
||||
cross.mkShell {
|
||||
@ -44,8 +42,10 @@ let
|
||||
buildInputs = [ cross.retro68.console ];
|
||||
} // cross) crossPkgs;
|
||||
|
||||
in shell.m68k // shell // {
|
||||
in builtins.trace
|
||||
"Warning: Retro68's default.nix is deprecated and will disappear soon. Please use the flake instead."
|
||||
(shell.m68k // shell // {
|
||||
inherit overlay;
|
||||
inherit (overlaidPkgs) retro68;
|
||||
targetPkg = targetPkgs;
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user