Files
rustty/package.nix
2026-01-18 02:25:58 +01:00

33 lines
539 B
Nix

{
lib,
libGL,
libxkbcommon,
makeWrapper,
naersk,
pkg-config,
xorg,
...
}:
naersk.buildPackage rec {
name = "rustty";
src = ./.;
buildInputs = [
# wayland graphics
libGL
libxkbcommon
xorg.libXcursor
xorg.libX11
];
nativeBuildInputs = [
pkg-config
makeWrapper
];
postInstall = ''
wrapProgram "$out/bin/${meta.mainProgram}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}"
'';
meta = {
mainProgram = "rustty";
homepage = "https://mtgmonkey.net";
};
}