nixpkgs/pkgs/os-specific/darwin/goku/default.nix

30 lines
681 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl }:
2018-10-27 15:15:36 +00:00
stdenv.mkDerivation rec {
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
'';
meta = with lib; {
2018-10-27 15:15:36 +00:00
description = "Karabiner configurator";
homepage = "https://github.com/yqrashawn/GokuRakuJoudo";
2018-10-27 15:15:36 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.nikitavoloboev ];
platforms = platforms.darwin;
};
}