Skip to content

Commit

Permalink
xremap: init at 0.8.14
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4A6F committed Nov 26, 2024
1 parent 0c02b30 commit 267e5b3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/by-name/xr/xremap/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
stdenv,
wayland,
kdeSupport ? true,
}:

rustPlatform.buildRustPackage rec {
pname = "xremap";
version = "0.8.14";

src = fetchFromGitHub {
owner = "k0kubun";
repo = "xremap";
rev = "v${version}";
hash = "sha256-GexVY76pfmHalJPiCfVe9C9CXtlojG/H6JjOiA0GF1c=";
};

cargoHash = "sha256-ABzt8PMsas9+NRvpgtZlsoYjjvwpU8f6lqhceHxq91M=";

cargoBuildFlags = lib.optional kdeSupport "--features kde";

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";
changelog = "https://github.com/k0kubun/xremap/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
mainProgram = "xremap";
maintainers = with maintainers; [ _0x4A6F ];
platforms = platforms.linux;
};
}

0 comments on commit 267e5b3

Please sign in to comment.