lol

lite: fix build error

authored by

sophrosyne97 and committed by
Jonathan Ringer
ea5726ae aea7b5f0

+3 -2
+3 -2
pkgs/applications/editors/lite/default.nix
··· 4 4 , lua52Packages 5 5 , pkg-config 6 6 , makeWrapper 7 + , openlibm 7 8 } : 8 9 9 10 stdenv.mkDerivation rec { ··· 19 20 20 21 nativeBuildInputs = [ makeWrapper pkg-config ]; 21 22 22 - buildInputs = [ SDL2 lua52Packages.lua ]; 23 + buildInputs = [ SDL2 lua52Packages.lua openlibm ]; 23 24 24 25 postPatch = '' 25 26 # use system Lua 5.2 ··· 34 35 # extracted and adapted from build.sh 35 36 CC=$NIX_CC/bin/cc 36 37 CFLAGS="-Wall -O3 -g -std=gnu11 -Isrc -DLUA_USE_POPEN $(pkg-config --cflags lua sdl2)" 37 - LDFLAGS="$(pkg-config --libs lua sdl2)" 38 + LDFLAGS="$(pkg-config --libs lua sdl2 openlibm)" 38 39 for f in $(find src -name "*.c"); do 39 40 $CC -c $CFLAGS $f -o "''${f//\//_}.o" 40 41 done