Created
April 29, 2021 06:25
-
-
Save cidkidnix/178d46d7f5e6fca1329f9eae19a1bb89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg-alvr = super.ffmpeg-full.overrideAttrs (old: { | |
configureFlags = old.configureFlags ++ [ | |
"--enable-vulkan" | |
]; | |
buildInputs = old.buildInputs ++ [ | |
super.vulkan-headers | |
super.vulkan-loader | |
]; | |
}); | |
alvr = super.rustPlatform.buildRustPackage { | |
pname = "alvr-linux"; | |
version = "unstable"; | |
src = super.fetchFromGitHub { | |
owner = "alvr-org"; | |
repo = "alvr"; | |
rev = "master"; | |
sha256 = "sha256-GZPdO9pXV+JF41w0TJtFRn8XTKfgZI0lUxUZcH40cVM="; | |
}; | |
cargoSha256 = "sha256-GbC+tDujj3/vyTSEN76z3lKKB680TJLrCt5I4cBHZgk="; | |
nativeBuildInputs = with super; [ | |
binutils | |
clang | |
cmake | |
pkg-config | |
]; | |
buildInputs = with super; [ | |
openssl alsaLib glib ffmpeg-alvr | |
cairo pango atk gdk-pixbuf | |
gtk3 vulkan-headers vulkan-tools-lunarg | |
vulkan-headers vulkan-loader | |
vulkan-validation-layers libunwind ffmpeg-alvr | |
]; | |
LIBCLANG_PATH="${super.llvmPackages.libclang}/lib"; ### mad at me otherwise | |
preBuildPhase = '' | |
mkdir -p target/x86_64-unknown-linux-gnu/release-tmp | |
mkdir -p target/release/ | |
''; | |
buildPhase = '' | |
cargo xtask build-server --release | |
''; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment