depot/third_party/nixpkgs/pkgs/tools/misc/wootility/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

43 lines
1.1 KiB
Nix

{ appimageTools
, fetchurl
, lib
, gsettings-desktop-schemas
, gtk3
, libxkbfile
, udev
, wooting-udev-rules
}:
let
pname = "wootility";
version = "3.5.10";
in
appimageTools.wrapType2 rec {
name = "${pname}-${version}";
src = fetchurl {
url = "https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-linux-latest/wootility-${version}.AppImage";
sha256 = "1bhk4jcziis01lyn8dmx93abd6p41gmbrysphcd5810l7zcfz59y";
};
profile = ''
export LC_ALL=C.UTF-8
export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS"
'';
multiPkgs = extraPkgs;
extraPkgs =
pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ ([
udev
wooting-udev-rules
libxkbfile
]);
extraInstallCommands = "mv $out/bin/{${name},${pname}}";
meta = with lib; {
homepage = "https://wooting.io/wootility";
description = "Wootility is customization and management software for Wooting keyboards.";
platforms = [ "x86_64-linux" ];
license = "unknown";
maintainers = with maintainers; [ davidtwco ];
};
}