Add wally
This commit is contained in:
parent
dcf4f09400
commit
b59d7515e8
|
@ -24,6 +24,11 @@
|
|||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
keymapp = prev.callPackage ./wally-cli {};
|
||||
})
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
30
wally-cli/default.nix
Normal file
30
wally-cli/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, requireFile, pkg-config, autoPatchelfHook, libusb1, webkitgtk }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "keymapp";
|
||||
version = "2.1.3";
|
||||
|
||||
src = requireFile {
|
||||
url = "https://github.com/zsa/wally/releases/download/${version}-linux/wally";
|
||||
sha256 = "owyXTC/VRJdeSPfyrJmiH5Nvo+CAOv7rEJaCanmv294=";
|
||||
};
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
|
||||
buildInputs = [ libusb1 webkitgtk ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -m755 -D $src $out/bin/wally
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to flash firmware to mechanical keyboards";
|
||||
homepage = "https://www.zsa.io/flash/";
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ spacekookie r-burns ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue