mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
868 B
Nix
32 lines
868 B
Nix
{ stdenv, fetchurl, doxygen }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0.2";
|
|
pname = "dirac";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/dirac/${pname}-${version}.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 ];
|
|
maintainers = [ maintainers.igsha ];
|
|
};
|
|
}
|