2022-05-09 20:00:06 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
}:
|
2018-10-27 17:15:36 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "goku";
|
2022-05-14 03:45:19 +02:00
|
|
|
version = "0.5.2";
|
2018-10-27 17:15:36 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-05-09 20:00:06 +02:00
|
|
|
url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku.zip";
|
2022-05-14 03:45:19 +02:00
|
|
|
sha256 = "506eccdabedc68c112778b13ded65099327267c2e3fd488916e3a340bc312954";
|
2018-10-27 17:15:36 +02:00
|
|
|
};
|
|
|
|
|
2022-05-09 20:00:06 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
2018-10-27 17:15:36 +02:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-10 15:37:33 +01:00
|
|
|
chmod +x goku
|
|
|
|
chmod +x gokuw
|
2018-10-27 17:15:36 +02:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp goku $out/bin
|
|
|
|
cp gokuw $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-27 17:15:36 +02:00
|
|
|
description = "Karabiner configurator";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/yqrashawn/GokuRakuJoudo";
|
2018-10-27 17:15:36 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.nikitavoloboev ];
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|