chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / os-specific / darwin / goku / default.nix
blob4babe83c63518de78ad544b0a92b6870c4a9eb3e
1 { lib
2 , stdenv
3 , fetchurl
4 , unzip
5 , joker
6 }:
8 stdenv.mkDerivation rec {
9   pname = "goku";
10   version = "0.6.0";
12   src = if stdenv.hostPlatform.isAarch64 then
13     fetchurl {
14       url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku-arm.zip";
15       hash = "sha256-TIoda2kDckK1FBLAmKudsDs3LXO4J0KWiAD2JlFb4rk=";
16     }
17     else fetchurl {
18       url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku.zip";
19       hash = "sha256-8HdIwtpzR6O2WCbMYIJ6PHcM27Xmb+4Tc5Fmjl0dABQ=";
20     };
22   nativeBuildInputs = [
23     unzip
24   ];
26   buildInputs = [
27     joker
28   ];
30   sourceRoot = if stdenv.hostPlatform.isAarch64 then "goku" else ".";
32   installPhase = ''
33     chmod +x goku
34     chmod +x gokuw
35     mkdir -p $out/bin
36     cp goku $out/bin
37     cp gokuw $out/bin
38   '';
40   meta = with lib; {
41     description = "Karabiner configurator";
42     homepage = "https://github.com/yqrashawn/GokuRakuJoudo";
43     license = licenses.gpl3;
44     maintainers = [ maintainers.nikitavoloboev ];
45     platforms = platforms.darwin;
46   };