This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/packages/cage-xtmapper-0.2.0.nix
2026-04-09 10:36:32 +07:00

48 lines
1 KiB
Nix

{ pkgs, ... }:
let
RELEASE_VERSION = "20260208";
PACKAGE_VERSION = "0.2.0";
in
pkgs.stdenv.mkDerivation rec {
pname = "cage-xtmapper";
version = PACKAGE_VERSION;
src = pkgs.fetchurl {
url = "https://github.com/Xtr126/cage-xtmapper/releases/download/v${RELEASE_VERSION}/cage-xtmapper-v${PACKAGE_VERSION}.tar";
hash = "sha256-F1C3KnTzTO1vEouixqO1xnsGmufRyAk+BiRlypNq4kQ=";
};
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
buildInputs = with pkgs; [
wayland
libxkbcommon
pixman
libdrm
libGL
mesa
vulkan-loader
udev
seatd
libxcb-render-util
];
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
tar xvf $src
cp usr/local/bin/cage_xtmapper $out/bin/
cp usr/local/bin/cage_xtmapper.sh $out/bin/
chmod +x $out/bin/cage_xtmapper
chmod +x $out/bin/cage_xtmapper.sh
'';
meta = with pkgs.lib; {
description = "cage-xtmapper input mapping tool";
homepage = "https://github.com/Xtr126/cage-xtmapper";
license = licenses.mit;
platforms = platforms.linux;
};
}