forked from mirrors/nixpkgs
1a634cc057
they're unnecessary since https://github.com/NixOS/nixpkgs/pull/161739/files which links the schemas to their correct fhs locations and adds gsettings-desktop-schemas and hicolor-icon-theme to appimage fhs
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib, appimageTools, fetchurl }:
|
|
|
|
let
|
|
pname = "chrysalis";
|
|
version = "0.8.6";
|
|
in appimageTools.wrapAppImage rec {
|
|
name = "${pname}-${version}-binary";
|
|
|
|
src = appimageTools.extract {
|
|
inherit name;
|
|
src = fetchurl {
|
|
url = "https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
|
|
sha256 = "17wv475w4m4fg6ky9wf7ygxm98nmsmydks14vh3an85xv0fhj8h9";
|
|
};
|
|
};
|
|
|
|
multiPkgs = null;
|
|
extraPkgs = p: (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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A graphical configurator for Kaleidoscope-powered keyboards";
|
|
homepage = "https://github.com/keyboardio/Chrysalis";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ aw ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|