2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, popt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "libdv";
|
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "mirror://sourceforge/libdv/libdv-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
|
|
|
|
};
|
|
|
|
|
|
|
|
# This fixes an undefined symbol: _sched_setscheduler error on compile.
|
|
|
|
# See the apple docs: http://cl.ly/2HeF bottom of the "Finding Imported Symbols" section
|
2021-02-05 17:12:51 +00:00
|
|
|
LDFLAGS = lib.optionalString stdenv.isDarwin "-undefined dynamic_lookup";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-asm"
|
|
|
|
"--disable-sdl"
|
|
|
|
"--disable-gtk"
|
|
|
|
"--disable-xv"
|
|
|
|
"--disable-gprof"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ popt ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
|
|
|
|
homepage = "https://sourceforge.net/projects/libdv/";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|