packages/pkgs/chrysalis/default.nix

30 lines
832 B
Nix
Raw Normal View History

2021-03-30 22:59:39 +02:00
{ lib, appimageTools, fetchurl }:
let
pname = "chrysalis";
version = "0.8.3";
in appimageTools.wrapType2 rec {
name = "${pname}-${version}-binary";
src = fetchurl {
url = "https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
sha256 = "sha256-7H5jZCtasuIBNXHBiSpBWy8mFqRw/Ae98LUfR3qK++o=";
};
multiPkgs = null;
extraPkgs = p: (appimageTools.defaultFhsEnvArgs.multiPkgs p) ++ [
p.glib
p.xorg.libxshmfence
];
extraInstallCommands = "mv $out/bin/${name} $out/bin/${pname}";
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" ];
};
}