depot/third_party/nixpkgs/pkgs/development/libraries/libdv/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

34 lines
944 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenv, fetchurl, popt }:
stdenv.mkDerivation rec {
pname = "libdv";
version = "1.0.0";
src = fetchurl {
url = "mirror://sourceforge/libdv/libdv-${version}.tar.gz";
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
};
# Disable priority scheduling on Darwin because it doesnt support sched_setscheduler.
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace encodedv/dvconnect.c \
--replace '#ifdef _SC_PRIORITY_SCHEDULING' '#if 0'
'';
configureFlags = [
"--disable-asm"
"--disable-sdl"
"--disable-gtk"
"--disable-xv"
"--disable-gprof"
];
buildInputs = [ popt ];
meta = with lib; {
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;
};
}