nixpkgs/pkgs/by-name/dv/dvgrab/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

42 lines
1.3 KiB
Nix

{ fetchFromGitHub, lib, stdenv, libunwind, libraw1394, libjpeg, libiec61883, libdv
, libavc1394, pkg-config, autoreconfHook }:
stdenv.mkDerivation {
pname = "dvgrab";
version = "2016-05-16";
src = fetchFromGitHub {
# mirror of original project with some build fixes
owner = "ddennedy";
repo = "dvgrab";
rev = "e46042e0c7b3523b6854ee547b0534e8310b7460";
sha256 = "17qy76fjpzrbxm4pj0ljx5lbimxryv24fvr13jwkh24j85dxailn";
};
buildInputs = [
libunwind libraw1394 libjpeg libiec61883 libdv libavc1394
];
nativeBuildInputs = [
autoreconfHook pkg-config
];
meta = with lib; {
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 = licenses.gpl2Plus;
platforms = platforms.gnu ++ platforms.linux;
mainProgram = "dvgrab";
};
}