mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-23 11:29:43 +01:00
Add keyboard updater
This commit is contained in:
parent
8e301d8505
commit
9678d10533
2 changed files with 27 additions and 0 deletions
26
keyboard-updater/default.nix
Normal file
26
keyboard-updater/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv, fetchFromGitHub, xxd, libusb }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "pinebook-pro-keyboard-updater";
|
||||
version = "2019-11-24";
|
||||
|
||||
nativeBuildInputs = [
|
||||
xxd
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libusb
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -v updater $out/bin
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ayufan-rock64";
|
||||
repo = "pinebook-pro-keyboard-updater";
|
||||
rev = "e2192c37456c6c3d0701ead62d56c320f80858b9";
|
||||
sha256 = "1pwz2fdqlwvab3xswi97msn06znbzdlbx1j4qx8fmqkqfg8z260z";
|
||||
};
|
||||
}
|
|
@ -35,4 +35,5 @@ in
|
|||
};
|
||||
linuxPackages_pinebookpro = linuxPackagesFor final.linux_pinebookpro;
|
||||
pinebookpro-firmware = callPackage ./firmware {};
|
||||
pinebookpro-keyboard-updater = callPackage ./keyboard-updater {};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue