mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-29 13:09:45 +01:00
27 lines
509 B
Nix
27 lines
509 B
Nix
|
{ stdenv, fetchFromGitHub, xxd, libusb }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
pname = "pinebook-pro-keyboard-updater";
|
||
|
version = "2021-07-28";
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
xxd
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
libusb
|
||
|
];
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
cp -v updater $out/bin
|
||
|
'';
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "dragan-simic";
|
||
|
repo = "pinebook-pro-keyboard-updater";
|
||
|
rev = "bd8d2ea48992b3e6ddd0b9435d21b74cdcf97224";
|
||
|
hash = "sha256-3+Qsa5lk1EJrLvPSyWthqBMTqJCigbJSmnsS6hdu+w8=";
|
||
|
};
|
||
|
}
|