blob: 4babe83c63518de78ad544b0a92b6870c4a9eb3e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, stdenv
, fetchurl
, unzip
, joker
}:
stdenv.mkDerivation rec {
pname = "goku";
version = "0.6.0";
src = if stdenv.hostPlatform.isAarch64 then
fetchurl {
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 = [
unzip
];
buildInputs = [
joker
];
sourceRoot = if stdenv.hostPlatform.isAarch64 then "goku" else ".";
installPhase = ''
chmod +x goku
chmod +x gokuw
mkdir -p $out/bin
cp goku $out/bin
cp gokuw $out/bin
'';
meta = with lib; {
description = "Karabiner configurator";
homepage = "https://github.com/yqrashawn/GokuRakuJoudo";
license = licenses.gpl3;
maintainers = [ maintainers.nikitavoloboev ];
platforms = platforms.darwin;
};
}
|