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.
33 lines
881 B
33 lines
881 B
let |
|
pkgs = import <nixpkgs> {}; |
|
devkitppc-img = pkgs.dockerTools.pullImage { |
|
imageName = "devkitpro/devkitppc"; |
|
imageDigest = "sha256:77ed88cb417e057fa805e12a8ce1eab8865fe35a761cde7be00315d5c6cba288"; |
|
sha256 = "LLFLDSPJ/tCRBLj0f9q34b5GVHnHudFCgkb7ppMm8VI="; |
|
finalImageName = "devkitpro/devkitppc"; |
|
finalImageTag = "20200704"; |
|
}; |
|
in { |
|
devkitppc = pkgs.stdenv.mkDerivation { |
|
name = "devkitppc"; |
|
src = import ./extract-docker.nix { |
|
pkgs = pkgs; |
|
image = devkitppc-img; |
|
directory = "/opt/devkitpro"; |
|
}; |
|
nativeBuildInputs = [ |
|
pkgs.autoPatchelfHook |
|
]; |
|
buildInputs = [ |
|
pkgs.stdenv.cc.cc |
|
pkgs.ncurses5 |
|
pkgs.expat |
|
]; |
|
buildPhase = "true"; |
|
installPhase = '' |
|
mkdir -p $out |
|
cp -r $src/{devkitPPC,libogc,examples,portlibs,tools,wut} $out |
|
rm -rf $out/pacman |
|
''; |
|
}; |
|
}
|
|
|