Created
November 28, 2018 12:02
-
-
Save telent/4a92294a767656759959006fe8440122 to your computer and use it in GitHub Desktop.
arcan build with nixos
This file contains 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
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "arcan"; | |
version="1"; | |
src = ./.; | |
nativeBuildInputs = with pkgs; [ | |
cmake git | |
] ; | |
CMAKE_CXX_FLAGS = "-msse4.1"; | |
DRM_INCLUDE_DIR = "${pkgs.libdrm.dev}/include/libdrm"; | |
buildInputs = with pkgs; [ | |
freetype openal sqlite mesa_noglu libGL SDL libdrm.dev | |
lua51Packages.lua libusb ffmpeg libxkbcommon | |
lzma vlc apr harfbuzz | |
] ; | |
preConfigurePhases = ["noSuidInstall"]; | |
noSuidInstall = '' | |
mkdir -p build | |
sed -i 's/SETUID//g' src/CMakeLists.txt | |
''; | |
cmakeFlags = "-DENABLE_SIMD=Off -DDRM_INCLUDE_DIR=${DRM_INCLUDE_DIR} -DVIDEO_PLATFORM=egl-dri ../src"; | |
# makeFlags="-C build"; | |
hardeningDisable = [ "all" ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment