Files
nixpkgs/pkgs/by-name/li/libdv/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

40 lines
972 B
Nix
Raw Permalink 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 (finalAttrs: {
pname = "libdv";
version = "1.0.0";
src = fetchurl {
url = "mirror://sourceforge/libdv/libdv-${finalAttrs.version}.tar.gz";
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
};
# Disable priority scheduling on Darwin because it doesn’t 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 = {
description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
homepage = "https://sourceforge.net/projects/libdv/";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.unix;
};
})