about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorsophrosyne97 <joshuaortiz@tutanota.com>2021-05-22 13:08:01 -0400
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-22 15:27:26 -0700
commitea5726aefeb5731ff3705b33ddbc86cded976ae3 (patch)
treee07f2ced17f32c92525a121f87521f72f95d5484 /pkgs
parentaea7b5f08e3715457fb75602eab7cc18febd439a (diff)
lite: fix build error
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/lite/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/editors/lite/default.nix b/pkgs/applications/editors/lite/default.nix
index a313ea18212f7..5ed1603ba8a86 100644
--- a/pkgs/applications/editors/lite/default.nix
+++ b/pkgs/applications/editors/lite/default.nix
@@ -4,6 +4,7 @@
 , lua52Packages
 , pkg-config
 , makeWrapper
+, openlibm
 } :
 
 stdenv.mkDerivation rec {
@@ -19,7 +20,7 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ makeWrapper pkg-config ];
 
-  buildInputs = [ SDL2 lua52Packages.lua ];
+  buildInputs = [ SDL2 lua52Packages.lua openlibm ];
 
   postPatch = ''
     # use system Lua 5.2
@@ -34,7 +35,7 @@ stdenv.mkDerivation rec {
     # extracted and adapted from build.sh
     CC=$NIX_CC/bin/cc
     CFLAGS="-Wall -O3 -g -std=gnu11 -Isrc -DLUA_USE_POPEN $(pkg-config --cflags lua sdl2)"
-    LDFLAGS="$(pkg-config --libs lua sdl2)"
+    LDFLAGS="$(pkg-config --libs lua sdl2 openlibm)"
     for f in $(find src -name "*.c"); do
       $CC -c $CFLAGS $f -o "''${f//\//_}.o"
     done