mirror of
https://github.com/ihaveamac/custom-install.git
synced 2026-01-21 14:06:02 +00:00
32 lines
916 B
Nix
32 lines
916 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
devkitNix.url = "github:bandithedoge/devkitNix";
|
|
devkitNix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, devkitNix }: let
|
|
pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ devkitNix.overlays.default ]; };
|
|
in {
|
|
devShells.x86_64-linux = rec {
|
|
custom-install-finalize = pkgs.mkShell.override { stdenv = pkgs.devkitNix.stdenvARM; } {};
|
|
cif = custom-install-finalize;
|
|
};
|
|
|
|
packages.x86_64-linux = rec {
|
|
custom-install-finalize = pkgs.devkitNix.stdenvARM.mkDerivation rec {
|
|
name = "custom-install-finalize";
|
|
src = builtins.path { path = ./.; name = name; };
|
|
|
|
makeFlags = [ "TARGET=${name}" ];
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp ${name}.3dsx $out
|
|
'';
|
|
};
|
|
cif = custom-install-finalize;
|
|
};
|
|
};
|
|
}
|