mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
61922738bb
Per the adjusted FFmpeg pinning advice, packages that work on the default version should use the unversioned variants to ease the migration to future versions and reduce the number of packages that end up referencing old versions. I have left HandBrake pinned as it builds a custom patched FFmpeg.
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, ffmpeg
|
|
, rustPlatform
|
|
, glib
|
|
, installShellFiles
|
|
, asciidoc
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "metadata";
|
|
version = "0.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zmwangx";
|
|
repo = "metadata";
|
|
rev = "v${version}";
|
|
hash = "sha256-OFWdCV9Msy/mNaSubqoJi4tBiFqL7RuWWQluSnKe4fU=";
|
|
};
|
|
|
|
cargoHash = "sha256-F5jXS/W600nbQtu1FD4+DawrFsO+5lJjvAvTiFKT840=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
asciidoc
|
|
installShellFiles
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
postBuild = ''
|
|
a2x --doctype manpage --format manpage man/metadata.1.adoc
|
|
'';
|
|
postInstall = ''
|
|
installManPage man/metadata.1
|
|
'';
|
|
|
|
buildInputs = [
|
|
ffmpeg
|
|
glib
|
|
];
|
|
|
|
env.FFMPEG_DIR = ffmpeg.dev;
|
|
|
|
meta = {
|
|
description = "Media metadata parser and formatter designed for human consumption, powered by FFmpeg";
|
|
maintainers = with lib.maintainers; [ clevor ];
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/zmwangx/metadata";
|
|
mainProgram = "metadata";
|
|
};
|
|
}
|