2020-01-07 21:58:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, xxd, libusb }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "pinebook-pro-keyboard-updater";
|
2020-01-22 21:29:19 +01:00
|
|
|
version = "2020-01-22";
|
2020-01-07 21:58:19 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
xxd
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libusb
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -v updater $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-01-22 21:29:19 +01:00
|
|
|
owner = "jackhumbert";
|
2020-01-07 21:58:19 +01:00
|
|
|
repo = "pinebook-pro-keyboard-updater";
|
2020-01-22 21:29:19 +01:00
|
|
|
rev = "10535c84ee599d3225b02a391c6eb2f9d8d5cdbe";
|
|
|
|
sha256 = "1kk4qzliqn1r8vfx8zdfpkpqazhxr4v2baahhgmlsblh0cm1cxnc";
|
2020-01-07 21:58:19 +01:00
|
|
|
};
|
|
|
|
}
|