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.
29 lines
787 B
29 lines
787 B
2 years ago
|
let
|
||
|
pkgs = import <nixpkgs> {};
|
||
2 years ago
|
image = pkgs.dockerTools.pullImage {
|
||
2 years ago
|
imageName = "devkitpro/devkitppc";
|
||
2 years ago
|
imageDigest = "sha256:d88e21c1a7b5f8070ba7a15aa892e395f118ded9803b0f8223a3d29ba279fff3";
|
||
|
sha256 = "nVtz/9mbYveKbvTMj/39EzND7qiLkjBHfqSOgT6SBUY=";
|
||
2 years ago
|
finalImageName = "devkitpro/devkitppc";
|
||
2 years ago
|
finalImageTag = "20220821";
|
||
2 years ago
|
};
|
||
2 years ago
|
in {
|
||
2 years ago
|
devkitPPC = pkgs.stdenv.mkDerivation {
|
||
|
name = "devkitPPC";
|
||
2 years ago
|
src = import ./extract-docker.nix pkgs image;
|
||
|
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
|
||
2 years ago
|
buildInputs = [
|
||
2 years ago
|
pkgs.stdenv.cc.cc
|
||
|
pkgs.ncurses5
|
||
|
pkgs.expat
|
||
2 years ago
|
pkgs.xz
|
||
2 years ago
|
];
|
||
|
buildPhase = "true";
|
||
|
installPhase = ''
|
||
|
mkdir -p $out
|
||
2 years ago
|
cp -r $src/{devkitPPC,libogc,portlibs,tools,wut} $out
|
||
2 years ago
|
rm -rf $out/pacman
|
||
|
'';
|
||
|
};
|
||
|
}
|