2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, fetchurl }:
|
2018-10-27 15:15:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "goku";
|
2021-02-10 14:37:33 +00:00
|
|
|
version = "0.3.6";
|
2018-10-27 15:15:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/yqrashawn/GokuRakuJoudo/releases/download/v${version}/goku.tar.gz";
|
2021-02-10 14:37:33 +00:00
|
|
|
sha256 = "1pss1k2slbqzpfynik50pdk4jsaiag4abhmr6kadmaaj18mfz7ai";
|
2018-10-27 15:15:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-10 14:37:33 +00:00
|
|
|
chmod +x goku
|
|
|
|
chmod +x gokuw
|
2018-10-27 15:15:36 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp goku $out/bin
|
|
|
|
cp gokuw $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-27 15:15:36 +00:00
|
|
|
description = "Karabiner configurator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/yqrashawn/GokuRakuJoudo";
|
2018-10-27 15:15:36 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.nikitavoloboev ];
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|