Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 32 lines 921 B view raw
1{ lib, stdenv, fetchurl, popt }: 2 3stdenv.mkDerivation rec { 4 pname = "libdv"; 5 version = "1.0.0"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/libdv/libdv-${version}.tar.gz"; 9 sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"; 10 }; 11 12 # This fixes an undefined symbol: _sched_setscheduler error on compile. 13 # See the apple docs: http://cl.ly/2HeF bottom of the "Finding Imported Symbols" section 14 LDFLAGS = lib.optionalString stdenv.isDarwin "-undefined dynamic_lookup"; 15 16 configureFlags = [ 17 "--disable-asm" 18 "--disable-sdl" 19 "--disable-gtk" 20 "--disable-xv" 21 "--disable-gprof" 22 ]; 23 24 buildInputs = [ popt ]; 25 26 meta = with lib; { 27 description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards"; 28 homepage = "https://sourceforge.net/projects/libdv/"; 29 license = licenses.lgpl21Plus; 30 platforms = platforms.unix; 31 }; 32}