diff options
author | Artturin <Artturin@artturin.com> | 2024-06-28 16:23:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 16:23:22 +0300 |
commit | 4fc22dda7cc2e5300a3ab3498f159c633fb28442 (patch) | |
tree | 2ec1cfad9e6133539020cb5a2626c54ae3af2ff2 /pkgs/tools | |
parent | 3230a11b72b3fb684bfc927db21e25fcbb68931c (diff) | |
parent | 7663ec0316c813cf79ca5a69fc695e7a39f6c30e (diff) |
Merge pull request #321659 from sodiboo/wootility-extras
wootility: implement `NIXOS_OZONE_WL` and add `.desktop` file
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/wootility/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pkgs/tools/misc/wootility/default.nix b/pkgs/tools/misc/wootility/default.nix index 0a376aaf782d7..c5477bb83844b 100644 --- a/pkgs/tools/misc/wootility/default.nix +++ b/pkgs/tools/misc/wootility/default.nix @@ -4,6 +4,7 @@ , xorg , udev , wooting-udev-rules +, makeWrapper }: appimageTools.wrapType2 rec { @@ -15,6 +16,20 @@ appimageTools.wrapType2 rec { sha256 = "sha256-JodmF3TThPpXXx1eOnYmYAJ4x5Ylcf35bw3R++5/Buk="; }; + 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 ''; @@ -31,8 +46,8 @@ appimageTools.wrapType2 rec { homepage = "https://wooting.io/wootility"; description = "Customization and management software for Wooting keyboards"; platforms = [ "x86_64-linux" ]; - license = "unknown"; - maintainers = with maintainers; [ davidtwco ]; + license = licenses.unfree; + maintainers = with maintainers; [ davidtwco sodiboo ]; mainProgram = "wootility"; }; } |