56 lines
987 B
Nix
56 lines
987 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
makeBinaryWrapper,
|
|
pkg-config,
|
|
wayland,
|
|
libxkbcommon,
|
|
libGL,
|
|
vulkan-loader,
|
|
libx11,
|
|
libxcursor,
|
|
libxrandr,
|
|
libxi,
|
|
}: let
|
|
runtimeLibs = [
|
|
wayland
|
|
libxkbcommon
|
|
libGL
|
|
vulkan-loader
|
|
libx11
|
|
libxcursor
|
|
libxrandr
|
|
libxi
|
|
];
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "coldiron";
|
|
version = "0.1.0";
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
buildInputs = runtimeLibs;
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/ColdIron" \
|
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeLibs}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "ColdIron - Learning Rust and Iced desktop GUI application";
|
|
homepage = "https://github.com/gooba42/coldIron";
|
|
license = licenses.mit;
|
|
mainProgram = "ColdIron";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|