Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
{
|
|
appimageTools,
|
|
fetchurl,
|
|
lib,
|
|
makeWrapper,
|
|
}:
|
|
|
|
let
|
|
pname = "wootility";
|
|
version = "5.1.1";
|
|
src = fetchurl {
|
|
url = "https://wootility-updates.ams3.cdn.digitaloceanspaces.com/wootility-linux/Wootility-${version}.AppImage";
|
|
sha256 = "sha256-NDTRsrOZljvFOkvBN40CmH4GD6szT3c9qoFdFGpZ5Oc=";
|
|
};
|
|
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=true}}"
|
|
|
|
install -Dm444 ${contents}/wootility.desktop -t $out/share/applications
|
|
install -Dm444 ${contents}/wootility.png -t $out/share/pixmaps
|
|
substituteInPlace $out/share/applications/wootility.desktop \
|
|
--replace-fail 'Exec=AppRun --no-sandbox' 'Exec=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; [
|
|
sodiboo
|
|
returntoreality
|
|
];
|
|
mainProgram = "wootility";
|
|
};
|
|
}
|