diff --git a/pkgs/development/interpreters/jimtcl/default.nix b/pkgs/development/interpreters/jimtcl/default.nix index a67dc323601f..4ac9b6479560 100644 --- a/pkgs/development/interpreters/jimtcl/default.nix +++ b/pkgs/development/interpreters/jimtcl/default.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation { sqlite readline asciidoc SDL SDL_gfx ]; + NIX_CFLAGS_COMPILE = [ "-I${SDL.dev}/include/SDL" ]; + configureFlags = [ "--with-ext=oo" "--with-ext=tree" @@ -25,12 +27,6 @@ stdenv.mkDerivation { "--ipv6" ]; - preConfigurePhase = '' - export CFLAGS=$(sdl-config --cflags) - export LDFLAGS=$(sdl-config --libs) - ''; - - meta = { description = "An open source small-footprint implementation of the Tcl programming language"; homepage = http://jim.tcl.tk/;