nixpkgs/pkgs/by-name/ha/harvid/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.5 KiB
Nix
Raw Normal View History

2024-07-21 13:49:09 +01:00
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
2024-07-21 13:43:41 +01:00
which,
unixtools,
cctools,
2024-07-21 13:43:41 +01:00
ffmpeg,
2024-07-21 13:49:09 +01:00
libjpeg,
libpng,
2024-08-01 17:02:03 +01:00
nix-update-script,
2024-07-21 13:49:09 +01:00
}:
2024-08-01 17:02:03 +01:00
stdenv.mkDerivation (finalAttrs: {
pname = "harvid";
version = "0.9.1";
src = fetchFromGitHub {
owner = "x42";
repo = "harvid";
2024-08-01 17:02:03 +01:00
rev = "v${finalAttrs.version}";
hash = "sha256-p0W+rKHH/iuGOcRjl6b4s6jQYkm7bqWCz849SDI/7fQ=";
};
2024-07-21 13:43:41 +01:00
nativeBuildInputs =
[ pkg-config ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
which
unixtools.xxd
];
2024-07-21 13:49:09 +01:00
buildInputs = [
2024-07-21 13:43:41 +01:00
ffmpeg
2024-07-21 13:49:09 +01:00
libjpeg
libpng
];
2024-07-21 13:43:41 +01:00
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace libharvid/Makefile \
--replace-fail /usr/bin/libtool ${cctools}/bin/libtool
'';
2024-08-01 17:48:07 +01:00
makeFlags = [
"PREFIX=$(out)"
"VERSION=v${finalAttrs.version}"
];
2024-07-21 13:43:41 +01:00
enableParallelBuilding = true;
2024-08-01 17:02:03 +01:00
passthru.updateScript = nix-update-script { };
2024-08-01 17:02:03 +01:00
meta = {
2024-07-21 13:49:09 +01:00
description = "Decodes still images from movie files and serves them via HTTP";
longDescription = ''
harvid's intended use-case is to efficiently provide frame-accurate data
and act as second level cache for rendering the video-timeline in Ardour,
but it is not limited to that: it has applications for any task that
requires a high-performance frame-accurate online image extraction
processor.
'';
homepage = "http://x42.github.io/harvid";
2024-08-01 17:02:03 +01:00
license = lib.licenses.gpl2Plus;
2024-07-21 13:43:41 +01:00
platforms = lib.platforms.unix;
2024-08-01 17:02:03 +01:00
maintainers = [ lib.maintainers.mitchmindtree ];
2023-11-23 02:51:17 +00:00
mainProgram = "harvid";
};
2024-08-01 17:02:03 +01:00
})