nixpkgs/pkgs/applications/misc/chrysalis/default.nix

33 lines
1.0 KiB
Nix
Raw Normal View History

2021-05-17 17:12:24 +00:00
{ lib, appimageTools, fetchurl, gtk3, gsettings-desktop-schemas }:
2020-11-03 13:58:14 +00:00
let
pname = "chrysalis";
2021-05-17 17:12:24 +00:00
version = "0.8.4";
2020-11-03 13:58:14 +00:00
in appimageTools.wrapType2 rec {
name = "${pname}-${version}-binary";
src = fetchurl {
2021-05-17 17:12:24 +00:00
url = "https://github.com/keyboardio/${pname}/releases/download/v${version}/${pname}-${version}.AppImage";
sha256 = "b41f3e23dac855b1588cff141e3d317f96baff929a0543c79fccee0c6f095bc7";
2020-11-03 13:58:14 +00:00
};
2021-05-17 17:12:24 +00:00
profile = ''
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
'';
2020-11-03 13:58:14 +00:00
multiPkgs = null;
extraPkgs = p: (appimageTools.defaultFhsEnvArgs.multiPkgs p) ++ [
p.glib
];
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" ];
};
}