mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
goku: 0.5.2 -> 0.6.0, fix deps, add aarch64
This commit is contained in:
parent
c8239165c5
commit
d8b19108ef
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user