nixpkgs/pkgs/development/compilers/orc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.9 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, meson
, ninja
, file
, docbook_xsl
, gtk-doc ? null
, buildDevDoc ? gtk-doc != null
# for passthru.tests
, gnuradio
, gst_all_1
, qt6
, vips
}: let
inherit (lib) optional optionals;
in stdenv.mkDerivation rec {
pname = "orc";
2023-06-25 12:43:30 +00:00
version = "0.4.34";
2013-08-11 03:00:45 +00:00
src = fetchurl {
url = "https://gstreamer.freedesktop.org/src/orc/${pname}-${version}.tar.xz";
2023-06-25 12:43:30 +00:00
sha256 = "sha256-j0ers/CXFx5E64B63Nq9hg+6Lv/TfY08T71fNByt1B8=";
2013-08-11 03:00:45 +00:00
};
postPatch = lib.optionalString stdenv.isAarch32 ''
# https://gitlab.freedesktop.org/gstreamer/orc/-/issues/20
sed -i '/exec_opcodes_sys/d' testsuite/meson.build
'' + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
# This benchmark times out on Hydra.nixos.org
sed -i '/memcpy_speed/d' testsuite/meson.build
'';
outputs = [ "out" "dev" ]
++ optional buildDevDoc "devdoc"
;
outputBin = "dev"; # compilation tools
mesonFlags =
optionals (!buildDevDoc) [ "-Dgtk_doc=disabled" ]
;
nativeBuildInputs = [ meson ninja ]
++ optionals buildDevDoc [ gtk-doc file docbook_xsl ]
;
2015-10-06 11:10:31 +00:00
# https://gitlab.freedesktop.org/gstreamer/orc/-/issues/41
doCheck = !(stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12");
passthru.tests = {
inherit (gst_all_1) gst-plugins-good gst-plugins-bad gst-plugins-ugly;
inherit gnuradio vips;
qt6-qtmultimedia = qt6.qtmultimedia;
};
meta = with lib; {
2013-08-11 03:00:45 +00:00
description = "The Oil Runtime Compiler";
homepage = "https://gstreamer.freedesktop.org/projects/orc.html";
2023-06-26 04:20:00 +00:00
changelog = "https://cgit.freedesktop.org/gstreamer/orc/plain/RELEASE?h=${version}";
2013-08-11 12:50:55 +00:00
# The source code implementing the Marsenne Twister algorithm is licensed
# under the 3-clause BSD license. The rest is 2-clause BSD license.
2018-09-01 23:07:45 +00:00
license = with licenses; [ bsd3 bsd2 ];
platforms = platforms.unix;
maintainers = [ ];
2013-08-11 03:00:45 +00:00
};
}