2022-09-24 00:14:38 +02:00
|
|
|
final: prev: {
|
|
|
|
chrysalis = let
|
|
|
|
pname = "chrysalis";
|
2022-10-03 15:00:53 +02:00
|
|
|
version = "0.11.6";
|
2022-09-24 00:14:38 +02:00
|
|
|
name = "${pname}-${version}-binary";
|
|
|
|
in
|
|
|
|
prev.appimageTools.wrapAppImage rec {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = prev.appimageTools.extract {
|
|
|
|
inherit name;
|
|
|
|
src = prev.fetchurl {
|
|
|
|
url = "https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
|
2022-10-03 15:00:53 +02:00
|
|
|
sha256 = "sha256-EZHVfjEQiCx7UrFSTz+y6Auy/bXoNZ9lRtnmaI6/4TQ=";
|
2022-09-24 00:14:38 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
multiPkgs = null;
|
|
|
|
extraPkgs = p:
|
|
|
|
(prev.appimageTools.defaultFhsEnvArgs.multiPkgs p)
|
|
|
|
++ [
|
|
|
|
p.glib
|
|
|
|
];
|
|
|
|
|
|
|
|
# Also expose the udev rules here, so it can be used as:
|
|
|
|
# services.udev.packages = [ pkgs.chrysalis ];
|
|
|
|
# to allow non-root modifications to the keyboards.
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${name} $out/bin/${pname}
|
|
|
|
mkdir -p $out/lib/udev/rules.d
|
|
|
|
ln -s \
|
|
|
|
--target-directory=$out/lib/udev/rules.d \
|
|
|
|
${src}/resources/static/udev/60-kaleidoscope.rules
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|