mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{ appimageTools
|
|
, fetchurl
|
|
, lib
|
|
, makeWrapper
|
|
}:
|
|
|
|
let
|
|
pname = "wootility";
|
|
version = "4.6.21";
|
|
src = fetchurl {
|
|
url = "https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-lekker-linux-latest/wootility-lekker-${version}.AppImage";
|
|
sha256 = "sha256-ockTQLZWbYvsLzv+D0exD5W/yMaIdse4/JQshbkVzAU=";
|
|
};
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
extraInstallCommands =
|
|
let contents = appimageTools.extract { inherit pname version src; };
|
|
in ''
|
|
wrapProgram $out/bin/wootility \
|
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime}}"
|
|
|
|
install -Dm444 ${contents}/wootility-lekker.desktop -t $out/share/applications
|
|
install -Dm444 ${contents}/wootility-lekker.png -t $out/share/pixmaps
|
|
substituteInPlace $out/share/applications/wootility-lekker.desktop \
|
|
--replace-fail 'Exec=AppRun' 'Exec=wootility' \
|
|
--replace-warn 'Name=wootility-lekker' 'Name=Wootility'
|
|
'';
|
|
|
|
profile = ''
|
|
export LC_ALL=C.UTF-8
|
|
'';
|
|
|
|
extraPkgs = pkgs: with pkgs; ([
|
|
xorg.libxkbfile
|
|
]);
|
|
|
|
meta = {
|
|
homepage = "https://wooting.io/wootility";
|
|
description = "Customization and management software for Wooting keyboards";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ davidtwco sodiboo ];
|
|
mainProgram = "wootility";
|
|
};
|
|
}
|