summary refs log tree commit diff
path: root/pkgs/development/libraries/dirac/default.nix
blob: 7cb7187a3ceb83bd1183dd6fa6ef32f6f7af7d92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchurl, doxygen }:

stdenv.mkDerivation rec {
  version = "1.0.2";
  name = "dirac-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/dirac/${name}.tar.gz";
    sha256 = "1z803yzp17cj69wn11iyb13swqdd9xdzr58dsk6ghpr3ipqicsw1";
  };

  buildInputs = [ doxygen ];
  enableParallelBuilding = true;

  patches = [ ./dirac-1.0.2.patch ];

  NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";

  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;
    description = "A general-purpose video codec based on wavelets";
    platforms = platforms.linux;
    license = with licenses; [ mpl11 gpl2 lgpl21 ];
    maintainer = maintainers.igsha;
  };
}