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