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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
741 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, unzip
}:
2018-10-27 17:15:36 +02:00
stdenv.mkDerivation rec {
pname = "goku";
2022-05-14 03:45:19 +02:00
version = "0.5.2";
2018-10-27 17:15:36 +02:00
src = fetchurl {
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
};
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
'';
meta = with lib; {
2018-10-27 17:15:36 +02:00
description = "Karabiner configurator";
homepage = "https://github.com/yqrashawn/GokuRakuJoudo";
2018-10-27 17:15:36 +02:00
license = licenses.gpl3;
maintainers = [ maintainers.nikitavoloboev ];
platforms = platforms.darwin;
};
}