diff --git a/pkgs/development/libraries/xavs/default.nix b/pkgs/development/libraries/xavs/default.nix new file mode 100644 index 000000000000..adace96afad8 --- /dev/null +++ b/pkgs/development/libraries/xavs/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchsvn }: + +stdenv.mkDerivation rec { + name = "xavs-${version}"; + version = "55"; + + src = fetchsvn { + url = "https://svn.code.sf.net/p/xavs/code/trunk"; + rev = "${version}"; + sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf"; + }; + + patchPhase = '' + patchShebangs configure + patchShebangs config.sub + patchShebangs version.sh + patchShebangs tools/countquant_xavs.pl + patchShebangs tools/patcheck + patchShebangs tools/regression-test.pl + patchShebangs tools/xavs-format + ''; + + configureFlags = [ + "--enable-pic" + "--enable-shared" + # Bug preventing compilation with assembly enabled + "--disable-asm" + ]; + + meta = with stdenv.lib; { + description = "AVS encoder and decoder"; + homepage = http://xavs.sourceforge.net/; + license = licenses.lgpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ codyopel ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f36af7e8432b..f0c98ce6c2ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7472,6 +7472,8 @@ let xapianBindings10 = callPackage ../development/libraries/xapian/bindings/1.0.x.nix { # TODO perl php Java, tcl, C#, python }; + xavs = callPackage ../development/libraries/xavs { }; + Xaw3d = callPackage ../development/libraries/Xaw3d { }; xbase = callPackage ../development/libraries/xbase { };