41 lines
979 B
Nix
41 lines
979 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
devkitNix.url = "github:bandithedoge/devkitNix";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
devkitNix,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [devkitNix.overlays.default];
|
|
};
|
|
in {
|
|
devShells.default =
|
|
pkgs.mkShell.override {
|
|
stdenv = pkgs.devkitNix.stdenvARM;
|
|
} {
|
|
packages = with pkgs; [imagemagick];
|
|
};
|
|
packages.default = pkgs.devkitNix.stdenvARM.mkDerivation {
|
|
name = "somding";
|
|
src = ./.;
|
|
buildInputs = [pkgs.imagemagick pkgs.which];
|
|
|
|
# makeFlags = ["TARGET=example"];
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp 3ds.3dsx $out
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|