mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
mjpegtools: split, use minimal version by default
This commit is contained in:
parent
79de9293c2
commit
4785ebc471
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, fetchurl, gtk, libdv, libjpeg, libpng, libX11, pkgconfig, SDL, SDL_gfx }:
|
||||
{ stdenv, lib, fetchurl, gtk, libdv, libjpeg, libpng, libX11, pkgconfig, SDL, SDL_gfx
|
||||
, withMinimal ? false
|
||||
}:
|
||||
|
||||
# TODO:
|
||||
# - make dependencies optional
|
||||
|
@ -7,9 +9,28 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mjpegtools-2.1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/mjpeg/${name}.tar.gz";
|
||||
sha256 = "01y4xpfdvd4zgv6fmcjny9mr1gbfd4y2i4adp657ydw6fqyi8kw6";
|
||||
};
|
||||
buildInputs = [ gtk libdv libjpeg libpng libX11 pkgconfig SDL SDL_gfx ];
|
||||
|
||||
buildInputs = [ libdv libjpeg libpng pkgconfig ]
|
||||
++ lib.optional (!withMinimal) [ gtk libX11 SDL SDL_gfx ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
outputs = [ "out" "lib" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A suite of programs for processing MPEG or MJPEG video";
|
||||
homepage = http://mjpeg.sourceforge.net/;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2378,7 +2378,11 @@ in
|
|||
|
||||
minixml = callPackage ../development/libraries/minixml { };
|
||||
|
||||
mjpegtools = callPackage ../tools/video/mjpegtools { };
|
||||
mjpegtoolsFull = callPackage ../tools/video/mjpegtools { };
|
||||
|
||||
mjpegtools = self.mjpegtoolsFull.override {
|
||||
withMinimal = true;
|
||||
};
|
||||
|
||||
mkcue = callPackage ../tools/cd-dvd/mkcue { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue