Knarkzel
2 years ago
3 changed files with 35 additions and 7 deletions
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
let |
||||
pkgs = import <nixpkgs> {}; |
||||
image = pkgs.dockerTools.pullImage { |
||||
imageName = "devkitpro/devkita64"; |
||||
imageDigest = "sha256:70db4c954eea43be5f1bc64c8882154126c99f47927ecb1e6b27fa18004fc961"; |
||||
sha256 = "a05LU5jF5KxQdqWJv+4b3EBRlVCZjBGx69WpFL57wP4="; |
||||
finalImageName = "devkitpro/devkita64"; |
||||
finalImageTag = "20221113"; |
||||
}; |
||||
in { |
||||
devkita64 = pkgs.stdenv.mkDerivation { |
||||
name = "devkita64"; |
||||
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 |
||||
''; |
||||
}; |
||||
} |
Loading…
Reference in new issue