From c9c2aa5cedca865e113c7ffbdd4c182a91722404 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 26 Apr 2015 18:05:56 +0300 Subject: [PATCH] Pass libcap as SDL input to fix the build --- pkgs/development/libraries/SDL/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/SDL/default.nix b/pkgs/development/libraries/SDL/default.nix index 6d6148e092a9..1e32a5985060 100644 --- a/pkgs/development/libraries/SDL/default.nix +++ b/pkgs/development/libraries/SDL/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, audiofile +{ stdenv, fetchurl, pkgconfig, audiofile, libcap , openglSupport ? false, mesa ? null , alsaSupport ? true, alsaLib ? null , x11Support ? true, x11 ? null, libXrandr ? null @@ -31,7 +31,8 @@ stdenv.mkDerivation rec { buildInputs = let notMingw = !(stdenv ? cross) || stdenv.cross.libc != "msvcrt"; - in stdenv.lib.optional notMingw audiofile; + in [ libcap ] + ++ (stdenv.lib.optional notMingw audiofile); nativeBuildInputs = [ pkgconfig ] ++ stdenv.lib.optional openglSupport [ mesa ];