forked from letoram/arcan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
38 lines (32 loc) · 925 Bytes
/
default.nix
File metadata and controls
38 lines (32 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## https://gist.github.com/telent/4a92294a767656759959006fe8440122
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 SDL2 libdrm.dev
lua51Packages.lua libusb ffmpeg libxkbcommon
lzma vlc apr harfbuzz
] ;
preConfigurePhases = ["noSuidInstall"];
noSuidInstall = ''
rm -rf build
mkdir -p build
sed -i 's/SETUID//g' src/CMakeLists.txt
'';
cmakeFlags = builtins.concatStringsSep " " [
"-DENABLE_SIMD=Off"
"-DDRM_INCLUDE_DIR=${DRM_INCLUDE_DIR}"
"-DVIDEO_PLATFORM=egl-dri"
"-DHYBRID_SDL=On" # "Produce an arcan_sdl main binary as well"
"../src"
];
# makeFlags="-C build";
hardeningDisable = [ "all" ];
}