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