summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/dv/dvgrab/package.nix
blob: bd788f940ae85af4161a8009b2497849179bbc49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
  fetchFromGitHub,
  lib,
  stdenv,
  libunwind,
  libraw1394,
  libjpeg,
  libiec61883,
  libdv,
  libavc1394,
  pkg-config,
  autoreconfHook,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "dvgrab";
  version = "3.5.2";

  src = fetchFromGitHub {
    # mirror of original project with some build fixes
    owner = "ddennedy";
    repo = "dvgrab";
    tag = "v${finalAttrs.version}";
    hash = "sha256-SAxI0jYSmNCwhz921nIhMcYVrpwsoX5YTO4qFrkcmeA=";
  };

  buildInputs = [
    libunwind
    libraw1394
    libjpeg
    libiec61883
    libdv
    libavc1394
  ];

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  meta = {
    description = "Receive and store audio & video over IEEE1394";

    longDescription = ''
      dvgrab receives audio and video data from a digital camcorder via an
      IEEE1394 (widely known as FireWire) or USB link and stores them into
      one of several file formats. It features autosplit of long video
      sequences, and supports saving the data as raw frames, AVI type 1,
      AVI type 2, Quicktime DV, a series of JPEG stills or MPEG2-TS.
    '';

    homepage = "https://github.com/ddennedy/dvgrab"; # Formerly http://www.kinodv.org/

    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.gnu ++ lib.platforms.linux;
    mainProgram = "dvgrab";
    maintainers = [ lib.maintainers.ryand56 ];
  };
})