This commit is contained in:
andromeda
2026-01-16 21:31:03 +01:00
commit eedc84d871
7 changed files with 325 additions and 0 deletions

38
package.nix Normal file
View File

@@ -0,0 +1,38 @@
{
fontconfig,
freetype,
lib,
libGL,
libxkbcommon,
makeWrapper,
naersk,
pkg-config,
wayland,
...
}:
naersk.buildPackage rec {
name = "rustty";
src = ./.;
buildInputs = [
# fonts
fontconfig
freetype
freetype.dev
# wayland graphics
libGL
libxkbcommon
wayland
];
nativeBuildInputs = [
pkg-config
makeWrapper
];
postInstall = ''
wrapProgram "$out/bin/${meta.mainProgram}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}"
'';
meta = {
mainProgram = "rustty";
homepage = "https://mtgmonkey.net";
};
}