Skip to content

Commit

Permalink
xremap: make configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4A6F committed Nov 26, 2024
1 parent 267e5b3 commit 93c0e9c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkgs/by-name/xr/xremap/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
fetchFromGitHub,
pkg-config,
stdenv,
wayland,
kdeSupport ? true,
gnomeSupport ? false,
kdeSupport ? false,
wlrootsSupport ? false,
x11Support ? false,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -21,16 +23,16 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-ABzt8PMsas9+NRvpgtZlsoYjjvwpU8f6lqhceHxq91M=";

cargoBuildFlags = lib.optional kdeSupport "--features kde";
cargoBuildFlags =
lib.optional gnomeSupport "--features gnome"
++ lib.optional kdeSupport "--features kde"
++ lib.optional wlrootsSupport "--features wlroots"
++ lib.optional x11Support "--features x11";

nativeBuildInputs = [
pkg-config
];

buildInputs = lib.optionals stdenv.isLinux [
wayland
];

meta = with lib; {
description = "Key remapper for X11 and Wayland";
homepage = "https://github.com/k0kubun/xremap";
Expand Down

0 comments on commit 93c0e9c

Please sign in to comment.