3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/dirac/default.nix

32 lines
868 B
Nix
Raw Normal View History

2016-02-10 19:27:00 +00:00
{ stdenv, fetchurl, doxygen }:
stdenv.mkDerivation rec {
version = "1.0.2";
pname = "dirac";
2016-02-10 19:27:00 +00:00
src = fetchurl {
url = "mirror://sourceforge/dirac/${pname}-${version}.tar.gz";
2016-02-10 19:27:00 +00:00
sha256 = "1z803yzp17cj69wn11iyb13swqdd9xdzr58dsk6ghpr3ipqicsw1";
};
buildInputs = [ doxygen ];
enableParallelBuilding = true;
patches = [ ./dirac-1.0.2.patch ];
2017-01-21 13:42:59 +00:00
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
2016-02-10 19:27:00 +00:00
postInstall = ''
# keep only necessary binaries
find $out/bin \( -name '*RGB*' -or -name '*YUV*' -or -name create_dirac_testfile.pl \) -delete
'';
meta = with stdenv.lib; {
homepage = https://sourceforge.net/projects/dirac;
2016-02-10 19:27:00 +00:00
description = "A general-purpose video codec based on wavelets";
platforms = platforms.linux;
2016-02-10 19:27:00 +00:00
license = with licenses; [ mpl11 gpl2 lgpl21 ];
maintainers = [ maintainers.igsha ];
2016-02-10 19:27:00 +00:00
};
}