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/tools/video/mjpegtools/default.nix
Normal file
42
pkgs/tools/video/mjpegtools/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, lib, fetchurl, gtk2, libdv, libjpeg, libpng, libX11, pkg-config, SDL, SDL_gfx
|
||||
, withMinimal ? true
|
||||
}:
|
||||
|
||||
# TODO:
|
||||
# - make dependencies optional
|
||||
# - libpng-apng as alternative to libpng?
|
||||
# - libXxf86dga support? checking for XF86DGAQueryExtension in -lXxf86dga... no
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mjpegtools";
|
||||
version = "2.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/mjpeg/mjpegtools-${version}.tar.gz";
|
||||
sha256 = "sha256-sYBTbX2ZYLBeACOhl7ANyxAJKaSaq3HRnVX0obIQ9Jo=";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ libdv libjpeg libpng ]
|
||||
++ lib.optionals (!withMinimal) [ gtk2 libX11 SDL SDL_gfx ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString (!withMinimal) "-I${lib.getDev SDL}/include/SDL";
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
outputs = [ "out" "lib" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A suite of programs for processing MPEG or MJPEG video";
|
||||
homepage = "http://mjpeg.sourceforge.net/";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue