Merge pull request #247183 from nshalman/chrysalis-0.13.2
chrysalis: 0.12.0 -> 0.13.2
This commit is contained in:
commit
654f51afa8
1 changed files with 24 additions and 17 deletions
|
@ -2,34 +2,40 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "chrysalis";
|
pname = "chrysalis";
|
||||||
version = "0.12.0";
|
version = "0.13.2";
|
||||||
in appimageTools.wrapAppImage rec {
|
|
||||||
name = "${pname}-${version}-binary";
|
name = "${pname}-${version}-binary";
|
||||||
|
src = fetchurl {
|
||||||
src = appimageTools.extract {
|
url =
|
||||||
inherit name;
|
"https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}-x64.AppImage";
|
||||||
src = fetchurl {
|
hash =
|
||||||
url = "https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
|
"sha512-WuItdQ/hDxbZZ3zulHI74NUkuYfesV/31rA1gPakCFgX2hpPrmKzwUez2vqt4N5qrGyphrR0bcelUatGZhOn5A==";
|
||||||
sha256 = "sha256-sQoEO1UII4Gbp7UbHCCyejsd94lkBbi93TH325EamFc=";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
appimageContents = appimageTools.extract { inherit name src; };
|
||||||
|
in appimageTools.wrapType2 rec {
|
||||||
|
inherit name pname src;
|
||||||
|
|
||||||
multiArch = false;
|
multiArch = false;
|
||||||
extraPkgs = p: (appimageTools.defaultFhsEnvArgs.multiPkgs p) ++ [
|
extraPkgs = p: (appimageTools.defaultFhsEnvArgs.multiPkgs p) ++ [ p.glib ];
|
||||||
p.glib
|
|
||||||
];
|
|
||||||
|
|
||||||
# Also expose the udev rules here, so it can be used as:
|
# Also expose the udev rules here, so it can be used as:
|
||||||
# services.udev.packages = [ pkgs.chrysalis ];
|
# services.udev.packages = [ pkgs.chrysalis ];
|
||||||
# to allow non-root modifications to the keyboards.
|
# to allow non-root modifications to the keyboards.
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
mv $out/bin/${name} $out/bin/${pname}
|
mv $out/bin/{${name},${pname}}
|
||||||
|
|
||||||
mkdir -p $out/lib/udev/rules.d
|
install -m 444 \
|
||||||
ln -s \
|
-D ${appimageContents}/usr/lib/chrysalis/resources/static/udev/60-kaleidoscope.rules \
|
||||||
--target-directory=$out/lib/udev/rules.d \
|
-t $out/lib/udev/rules.d
|
||||||
${src}/resources/static/udev/60-kaleidoscope.rules
|
|
||||||
|
install -m 444 \
|
||||||
|
-D ${appimageContents}/Chrysalis.desktop \
|
||||||
|
-t $out/share/applications
|
||||||
|
substituteInPlace \
|
||||||
|
$out/share/applications/Chrysalis.desktop \
|
||||||
|
--replace 'Exec=Chrysalis' 'Exec=${pname}'
|
||||||
|
|
||||||
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -38,5 +44,6 @@ in appimageTools.wrapAppImage rec {
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ aw ];
|
maintainers = with maintainers; [ aw ];
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
|
mainProgram = pname;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue