Loading pkgs/by-name/me/metadata/package.nix +16 −15 Original line number Diff line number Diff line { lib, fetchFromGitHub, fetchpatch, pkg-config, ffmpeg, rustPlatform, glib, installShellFiles, asciidoc, versionCheckHook, }: rustPlatform.buildRustPackage { rustPlatform.buildRustPackage (finalAttrs: { pname = "metadata"; version = "0.1.9"; version = "0.1.10"; src = fetchFromGitHub { owner = "zmwangx"; repo = "metadata"; rev = "ec9614cfa64ffc95d74e4b19496ebd9b026e692b"; hash = "sha256-ugirYg3l+zIfKAqp2smLgG99mX9tsy9rmGe6lFAwx5o="; tag = "v${finalAttrs.version}"; hash = "sha256-wZ1wLygPFBFZsSYJGxNzYV+mXtbN68GY3nMYDFHPZHo="; }; cargoHash = "sha256-CqPRhfhTAEXTXRAJ9T5gQZx5jAQmJXYPbfQmyXkO6Sk="; cargoHash = "sha256-pWekXsjAhK4wyjf95nZO+Wj9PcH87D8vYsRFAE/w/sw="; nativeBuildInputs = [ pkg-config Loading @@ -29,14 +29,6 @@ rustPlatform.buildRustPackage { rustPlatform.bindgenHook ]; cargoPatches = [ (fetchpatch { name = "update-crate-ffmpeg-next-version.patch"; url = "https://github.com/myclevorname/metadata/commit/a1bc9f53d9aa0aeb17cbb530a1da1de4fdf85328.diff"; hash = "sha256-LEwOK1UFUwLZhqLnoUor5CSOwz4DDjNFMnMOGq1S1Sc="; }) ]; postBuild = '' a2x --doctype manpage --format manpage man/metadata.1.adoc ''; Loading @@ -51,6 +43,15 @@ rustPlatform.buildRustPackage { env.FFMPEG_DIR = ffmpeg.dev; checkFlags = [ # "AAC (HE-AAC v2)" is reported as "AAC (LC)" in newer ffmpeg # https://github.com/zmwangx/metadata/issues/13 "--skip=aac_he_aac" ]; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; meta = { description = "Media metadata parser and formatter designed for human consumption, powered by FFmpeg"; maintainers = with lib.maintainers; [ ]; Loading @@ -58,4 +59,4 @@ rustPlatform.buildRustPackage { homepage = "https://github.com/zmwangx/metadata"; mainProgram = "metadata"; }; } }) Loading
pkgs/by-name/me/metadata/package.nix +16 −15 Original line number Diff line number Diff line { lib, fetchFromGitHub, fetchpatch, pkg-config, ffmpeg, rustPlatform, glib, installShellFiles, asciidoc, versionCheckHook, }: rustPlatform.buildRustPackage { rustPlatform.buildRustPackage (finalAttrs: { pname = "metadata"; version = "0.1.9"; version = "0.1.10"; src = fetchFromGitHub { owner = "zmwangx"; repo = "metadata"; rev = "ec9614cfa64ffc95d74e4b19496ebd9b026e692b"; hash = "sha256-ugirYg3l+zIfKAqp2smLgG99mX9tsy9rmGe6lFAwx5o="; tag = "v${finalAttrs.version}"; hash = "sha256-wZ1wLygPFBFZsSYJGxNzYV+mXtbN68GY3nMYDFHPZHo="; }; cargoHash = "sha256-CqPRhfhTAEXTXRAJ9T5gQZx5jAQmJXYPbfQmyXkO6Sk="; cargoHash = "sha256-pWekXsjAhK4wyjf95nZO+Wj9PcH87D8vYsRFAE/w/sw="; nativeBuildInputs = [ pkg-config Loading @@ -29,14 +29,6 @@ rustPlatform.buildRustPackage { rustPlatform.bindgenHook ]; cargoPatches = [ (fetchpatch { name = "update-crate-ffmpeg-next-version.patch"; url = "https://github.com/myclevorname/metadata/commit/a1bc9f53d9aa0aeb17cbb530a1da1de4fdf85328.diff"; hash = "sha256-LEwOK1UFUwLZhqLnoUor5CSOwz4DDjNFMnMOGq1S1Sc="; }) ]; postBuild = '' a2x --doctype manpage --format manpage man/metadata.1.adoc ''; Loading @@ -51,6 +43,15 @@ rustPlatform.buildRustPackage { env.FFMPEG_DIR = ffmpeg.dev; checkFlags = [ # "AAC (HE-AAC v2)" is reported as "AAC (LC)" in newer ffmpeg # https://github.com/zmwangx/metadata/issues/13 "--skip=aac_he_aac" ]; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; meta = { description = "Media metadata parser and formatter designed for human consumption, powered by FFmpeg"; maintainers = with lib.maintainers; [ ]; Loading @@ -58,4 +59,4 @@ rustPlatform.buildRustPackage { homepage = "https://github.com/zmwangx/metadata"; mainProgram = "metadata"; }; } })