1
0
Fork 0

Add nix package

This commit is contained in:
Toast 2024-03-11 12:44:01 +01:00
parent 0bd5779636
commit e73933de03

View file

@ -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;
};
};
}