vp: fix build

This commit is contained in:
Robin Gloster 2016-09-06 16:48:02 +02:00
parent b1c83e8928
commit 9ab141ce27
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoconf, automake, SDL, SDL_image }:
{ stdenv, fetchFromGitHub, autoreconfHook, SDL, SDL_image }:
stdenv.mkDerivation rec {
name = "vp-${version}";
@ -11,11 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "08q6xrxsyj6vj0sz59nix9isqz84gw3x9hym63lz6v8fpacvykdq";
};
buildInputs = [ SDL autoconf automake SDL_image ];
nativeBuildInputs = [ autoreconfHook ];
preConfigure = ''
autoreconf -i
'';
buildInputs = [ SDL SDL_image ];
NIX_CFLAGS_COMPILE="-I${SDL}/include/SDL -I${SDL_image}/include/SDL";
meta = with stdenv.lib; {
homepage = http://brlcad.org/~erik/;