Add nix package
This commit is contained in:
parent
0bd5779636
commit
e73933de03
1 changed files with 14 additions and 0 deletions
14
flake.nix
14
flake.nix
|
|
@ -22,5 +22,19 @@
|
|||
export DEVKITARM=${devkitARM}/devkitARM
|
||||
'';
|
||||
};
|
||||
packages.${system}.default = nixpkgs.legacyPackages.${system}.stdenv.mkDerivation {
|
||||
name = "3ds-template";
|
||||
src = self;
|
||||
preBuild = ''
|
||||
export DEVKITPRO=${devkitARM}
|
||||
export DEVKITARM=${devkitARM}/devkitARM
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
mv *.3dsx *.elf *.smdh --target-directory $out/
|
||||
'';
|
||||
# Building 3ds apps here, we don't need to do this
|
||||
dontFixup = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue