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
47
pkgs/tools/misc/oggvideotools/default.nix
Normal file
47
pkgs/tools/misc/oggvideotools/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, boost, gd, libogg, libtheora, libvorbis }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "oggvideotools";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/oggvideotools/oggvideotools/oggvideotools-${version}/oggvideotools-${version}.tar.bz2";
|
||||
sha256 = "sha256-2dv3iXt86phhIgnYC5EnRzyX1u5ssNzPwrOP4+jilSM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix pending upstream inclusion for missing includes:
|
||||
# https://sourceforge.net/p/oggvideotools/bugs/12/
|
||||
(fetchpatch {
|
||||
name = "gcc-10.patch";
|
||||
url = "https://sourceforge.net/p/oggvideotools/bugs/12/attachment/fix-compile.patch";
|
||||
sha256 = "sha256-mJttoC3jCLM3vmPhlyqh+W0ryp2RjJGIBXd6sJfLJA4=";
|
||||
})
|
||||
|
||||
# Fix pending upstream inclusion for build failure on gcc-12:
|
||||
# https://sourceforge.net/p/oggvideotools/bugs/13/
|
||||
(fetchpatch {
|
||||
name = "gcc-12.patch";
|
||||
url = "https://sourceforge.net/p/oggvideotools/bugs/13/attachment/fix-gcc-12.patch";
|
||||
sha256 = "sha256-zuDXe86djWkR8SgYZHkuAJJ7Lf2VYsVRBrlEaODtMKE=";
|
||||
# svn patch, rely on prefix added by fetchpatch:
|
||||
extraPrefix = "";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Don't disable optimisations
|
||||
substituteInPlace CMakeLists.txt --replace " -O0 " ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = [ boost gd libogg libtheora libvorbis ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Toolbox for manipulating and creating Ogg video files";
|
||||
homepage = "http://www.streamnik.de/oggvideotools.html";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue