9 , buildDevDoc ? gtk-doc != null
18 inherit (lib) optional optionals;
19 in stdenv.mkDerivation rec {
24 url = "https://gstreamer.freedesktop.org/src/orc/${pname}-${version}.tar.xz";
25 sha256 = "sha256-M+0jh/Sbgl+hucOwBy4F8lkUG4lUdK0IWuURQ9MEDMA=";
28 postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
29 # This benchmark times out on Hydra.nixos.org
30 sed -i '/memcpy_speed/d' testsuite/meson.build
33 outputs = [ "out" "dev" ]
34 ++ optional buildDevDoc "devdoc"
36 outputBin = "dev"; # compilation tools
39 optionals (!buildDevDoc) [ "-Dgtk_doc=disabled" ]
42 nativeBuildInputs = [ meson ninja ]
43 ++ optionals buildDevDoc [ gtk-doc file docbook_xsl ]
46 # https://gitlab.freedesktop.org/gstreamer/orc/-/issues/41
47 doCheck = !(stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12");
50 inherit (gst_all_1) gst-plugins-good gst-plugins-bad gst-plugins-ugly;
51 inherit gnuradio vips;
52 qt6-qtmultimedia = qt6.qtmultimedia;
56 description = "Oil Runtime Compiler";
57 homepage = "https://gstreamer.freedesktop.org/projects/orc.html";
58 changelog = "https://cgit.freedesktop.org/gstreamer/orc/plain/RELEASE?h=${version}";
59 # The source code implementing the Marsenne Twister algorithm is licensed
60 # under the 3-clause BSD license. The rest is 2-clause BSD license.
61 license = with licenses; [ bsd3 bsd2 ];
62 platforms = platforms.unix;
63 maintainers = with maintainers; [ ];