mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
944 B
Nix
35 lines
944 B
Nix
{ 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 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 = 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;
|
||
};
|
||
}
|