Updated project details
This commit is contained in:
+55
@@ -0,0 +1,55 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user