pkgs: kaleidoscope-udev-rules: please ambroisie
This commit is contained in:
parent
0bea117289
commit
bcf896224e
|
@ -1,25 +1,30 @@
|
||||||
{ stdenv, lib }:
|
{ stdenv, lib, fetchFromGitHub }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
version = "1.99.3";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit version;
|
||||||
pname = "kaleidoscope-udev-rules";
|
pname = "kaleidoscope-udev-rules";
|
||||||
version = "0.8.4";
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
src = ./.;
|
src = fetchFromGitHub {
|
||||||
|
owner = "keyboardio";
|
||||||
|
repo = "Kaleidoscope";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-4WIl/Hj23j9GLzdMcyEQvg9X7HI4WSInrLkYCkj6yhM=";
|
||||||
|
};
|
||||||
|
|
||||||
# FIXME: fetch from GitHub properly
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/udev/rules.d
|
mkdir -p $out/lib/udev/rules.d
|
||||||
cp ./60-kaleidoscope.rules $out/lib/udev/rules.d/
|
cp etc/60-kaleidoscope.rules $out/lib/udev/rules.d/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "udev rules for kaleidoscope firmware keyboards";
|
description = "udev rules for kaleidoscope firmware keyboards";
|
||||||
homepage = "https://github.com/keyboardio/Chrysalis";
|
homepage = "https://github.com/keyboardio/Kaleidoscope";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue