uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/development/libraries/SDL2_image/default.nix
Normal file
42
pkgs/development/libraries/SDL2_image/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, pkg-config
|
||||
, SDL2, libpng, libjpeg, libtiff, giflib, libwebp, libXpm, zlib, Foundation
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "SDL2_image";
|
||||
version = "2.0.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.libsdl.org/projects/SDL_image/release/${pname}-${version}.tar.gz";
|
||||
sha256 = "1l0864kas9cwpp2d32yxl81g98lx40dhbdp03dz7sbv84vhgdmdx";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ SDL2 libpng libjpeg libtiff giflib libwebp libXpm zlib ]
|
||||
++ lib.optional stdenv.isDarwin Foundation;
|
||||
|
||||
configureFlags = [
|
||||
# Disable dynamically loaded dependencies
|
||||
"--disable-jpg-shared"
|
||||
"--disable-png-shared"
|
||||
"--disable-tif-shared"
|
||||
"--disable-webp-shared"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# Darwin headless will hang when trying to run the SDL test program
|
||||
"--disable-sdltest"
|
||||
# Don't use native macOS frameworks
|
||||
"--disable-imageio"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "SDL image library";
|
||||
homepage = "http://www.libsdl.org/projects/SDL_image/";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.zlib;
|
||||
maintainers = with maintainers; [ cpages ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue