init
This commit is contained in:
38
package.nix
Normal file
38
package.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user