You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
768 B
28 lines
768 B
2 years ago
|
let
|
||
|
pkgs = import <nixpkgs> {};
|
||
|
image = pkgs.dockerTools.pullImage {
|
||
|
imageName = "devkitpro/devkita64";
|
||
|
imageDigest = "sha256:70db4c954eea43be5f1bc64c8882154126c99f47927ecb1e6b27fa18004fc961";
|
||
|
sha256 = "a05LU5jF5KxQdqWJv+4b3EBRlVCZjBGx69WpFL57wP4=";
|
||
|
finalImageName = "devkitpro/devkita64";
|
||
|
finalImageTag = "20221113";
|
||
|
};
|
||
|
in {
|
||
2 years ago
|
devkitA64 = pkgs.stdenv.mkDerivation {
|
||
|
name = "devkitA64";
|
||
2 years ago
|
src = import ./extract-docker.nix pkgs image;
|
||
|
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
|
||
|
buildInputs = [
|
||
|
pkgs.stdenv.cc.cc
|
||
|
pkgs.ncurses6
|
||
|
pkgs.zsnes
|
||
|
];
|
||
|
buildPhase = "true";
|
||
|
installPhase = ''
|
||
|
mkdir -p $out
|
||
|
cp -r $src/{devkitA64,libnx,portlibs,tools} $out
|
||
|
rm -rf $out/pacman
|
||
|
'';
|
||
|
};
|
||
|
}
|