pingus, quirc: fix pkgconfig passing

This commit is contained in:
Michael Raskin 2017-10-10 17:22:48 +02:00
parent e71a6aabf8
commit ef291b52f3
2 changed files with 5 additions and 7 deletions

View File

@ -1,8 +1,6 @@
{stdenv, fetchurl, scons, SDL, SDL_image, boost, libpng, SDL_mixer, pkgconfig
, mesa}:
let
nativeBuildInputs = [ pkgconfig ];
buildInputs = [scons SDL SDL_image boost libpng SDL_mixer mesa];
s = # Generated upstream information
rec {
baseName="pingus";
@ -15,7 +13,8 @@ let
in
stdenv.mkDerivation rec {
inherit (s) name version;
inherit buildInputs;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [scons SDL SDL_image boost libpng SDL_mixer mesa];
src = fetchurl {
inherit (s) url sha256;
};

View File

@ -10,14 +10,13 @@ let
rev = "5b262480091d5f84a67a4a56c728fc8b39844339";
sha256 = "1w5qvjafn14s6jjs7kiwsqirlsqbgv0p152hrsq463pm34hp0lzy";
};
in
stdenv.mkDerivation {
inherit (s) name version;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
SDL SDL_gfx libjpeg libpng
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchgit {
inherit (s) url sha256 rev;
};