nixpkgs/pkgs/tools/misc/wootility/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.5 KiB
Nix
Raw Normal View History

2020-07-07 16:19:25 +00:00
{ appimageTools
, fetchurl
, lib
, makeWrapper
2020-07-07 16:19:25 +00:00
}:
2023-04-06 20:51:49 +00:00
2024-06-28 16:15:18 +00:00
let
2023-04-06 20:51:49 +00:00
pname = "wootility";
2024-07-12 09:16:40 +00:00
version = "4.6.21";
src = fetchurl {
2023-04-06 20:51:49 +00:00
url = "https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-lekker-linux-latest/wootility-lekker-${version}.AppImage";
2024-07-12 09:16:40 +00:00
sha256 = "sha256-ockTQLZWbYvsLzv+D0exD5W/yMaIdse4/JQshbkVzAU=";
};
2024-06-28 16:15:18 +00:00
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands =
let contents = appimageTools.extract { inherit pname version src; };
in ''
source "${makeWrapper}/nix-support/setup-hook"
wrapProgram $out/bin/wootility \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
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
'';
2024-06-28 16:15:18 +00:00
extraPkgs = pkgs: with pkgs; ([
xorg.libxkbfile
]);
2024-06-28 16:15:18 +00:00
meta = {
homepage = "https://wooting.io/wootility";
description = "Customization and management software for Wooting keyboards";
2024-06-28 16:15:18 +00:00
platforms = lib.platforms.linux;
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ davidtwco sodiboo ];
2023-11-27 01:17:53 +00:00
mainProgram = "wootility";
};
}