1{
2 lib,
3 stdenv,
4 fetchurl,
5 orc,
6 pkg-config,
7 fetchpatch,
8 autoreconfHook,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "schroedinger";
13 version = "1.0.11";
14
15 src = fetchurl {
16 url = "https://download.videolan.org/contrib/${pname}-${version}.tar.gz";
17 sha256 = "04prr667l4sn4zx256v1z36a0nnkxfdqyln48rbwlamr6l3jlmqy";
18 };
19
20 outputs = [
21 "out"
22 "dev"
23 "devdoc"
24 ];
25
26 nativeBuildInputs = [
27 pkg-config
28 autoreconfHook
29 ];
30 buildInputs = [ orc ];
31
32 doCheck = (!stdenv.hostPlatform.isDarwin);
33
34 patchFlags = [ "-p0" ];
35 patches = [
36 (fetchpatch {
37 url = "https://raw.githubusercontent.com/macports/macports-ports/master/multimedia/schroedinger/files/patch-testsuite-Makefile.am.diff";
38 sha256 = "0cc8ymvgjgwy7ghca2dd8m8pxpinf27s2i8krf2m3fzv2ckq09v3";
39 })
40 ];
41
42 meta = with lib; {
43 description = "Implementation of the Dirac video codec in ANSI C";
44 homepage = "https://sourceforge.net/projects/schrodinger/";
45 maintainers = [ ];
46 license = [
47 licenses.mpl11
48 licenses.lgpl2
49 licenses.mit
50 ];
51 platforms = platforms.unix;
52 };
53}