1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "orc-0.4.26";
5
6 src = fetchurl {
7 url = "http://gstreamer.freedesktop.org/src/orc/${name}.tar.xz";
8 sha256 = "0jd69ynvr3k70mlxxgbsk047l1rd63m1wkj3qdcq7644xy0gllkx";
9 };
10
11 outputs = [ "out" "dev" ];
12 outputBin = "dev"; # compilation tools
13
14 postInstall = ''
15 sed "/^toolsdir=/ctoolsdir=$dev/bin" -i "$dev"/lib/pkgconfig/orc*.pc
16 '';
17
18 # building memcpy_speed.log
19 # ../test-driver: line 107: 4495 Segmentation fault "$@" > $log_file 2>&1
20 # FAIL: memcpy_speed
21 doCheck = false; # see https://bugzilla.gnome.org/show_bug.cgi?id=728129#c7
22
23 meta = with stdenv.lib; {
24 description = "The Oil Runtime Compiler";
25 homepage = http://code.entropywave.com/orc/;
26 # The source code implementing the Marsenne Twister algorithm is licensed
27 # under the 3-clause BSD license. The rest is 2-clause BSD license.
28 license = licenses.bsd3;
29 platforms = platforms.unix;
30 maintainers = [ maintainers.fuuzetsu ];
31 };
32}