goku: 0.5.2 -> 0.6.0, fix deps, add aarch64

This commit is contained in:
Grace Dinh 2022-12-08 12:30:11 -08:00
parent c8239165c5
commit d8b19108ef

View File

@ -2,22 +2,32 @@
, stdenv , stdenv
, fetchurl , fetchurl
, unzip , unzip
, joker
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "goku"; pname = "goku";
version = "0.5.2"; version = "0.6.0";
src = fetchurl { src = if stdenv.isAarch64 then
url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku.zip"; fetchurl {
sha256 = "506eccdabedc68c112778b13ded65099327267c2e3fd488916e3a340bc312954"; url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku-arm.zip";
}; hash = "sha256-TIoda2kDckK1FBLAmKudsDs3LXO4J0KWiAD2JlFb4rk=";
}
else fetchurl {
url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku.zip";
hash = "sha256-8HdIwtpzR6O2WCbMYIJ6PHcM27Xmb+4Tc5Fmjl0dABQ=";
};
nativeBuildInputs = [ nativeBuildInputs = [
unzip unzip
]; ];
sourceRoot = "."; buildInputs = [
joker
];
sourceRoot = if stdenv.isAarch64 then "goku" else ".";
installPhase = '' installPhase = ''
chmod +x goku chmod +x goku