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
33
pkgs/tools/graphics/timg/default.nix
Normal file
33
pkgs/tools/graphics/timg/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, graphicsmagick, libjpeg
|
||||
, ffmpeg, zlib, libexif, openslide }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "timg";
|
||||
version = "1.4.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hzeller";
|
||||
repo = "timg";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gdwg15fywya6k6pajkx86kv2d8k85pmisnq53b02br5i01y4k41";
|
||||
};
|
||||
|
||||
buildInputs = [ graphicsmagick ffmpeg libexif libjpeg openslide zlib ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DTIMG_VERSION_FROM_GIT=Off"
|
||||
"-DWITH_VIDEO_DECODING=On"
|
||||
"-DWITH_VIDEO_DEVICE=On"
|
||||
"-DWITH_OPENSLIDE_SUPPORT=On"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://timg.sh/";
|
||||
description = "A terminal image and video viewer";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ hzeller ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue