Merge pull request #322773 from myclevorname/metadata

metadata: init at 0.1.9
This commit is contained in:
Aleksana 2024-07-02 23:51:18 +08:00 committed by GitHub
commit 5860398672
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 58 additions and 0 deletions

View File

@ -3751,6 +3751,12 @@
githubId = 848609;
name = "Michael Bishop";
};
clevor = {
email = "myclevorname@gmail.com";
github = "myclevorname";
githubId = 140354451;
name = "Samuel Connelly";
};
clkamp = {
email = "c@lkamp.de";
github = "clkamp";

View File

@ -0,0 +1,52 @@
{ stdenv
, lib
, fetchFromGitHub
, pkg-config
, ffmpeg_7
, 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_7
glib
];
env.FFMPEG_DIR = ffmpeg_7.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";
};
}