mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
c2patool: 0.9.12 -> 0.16.4
This commit is contained in:
@@ -8,19 +8,19 @@
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "c2patool";
|
||||
version = "0.9.12";
|
||||
version = "0.16.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "contentauth";
|
||||
repo = "c2patool";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-3OaCsy6xt2Pc/Cqm3qbbpr7kiQiA2BM/LqIQnuw73MY=";
|
||||
repo = "c2pa-rs";
|
||||
tag = "c2patool-v${finalAttrs.version}";
|
||||
hash = "sha256-mJ9839jW8+HuzyFJuT+PwERGXO765ST5iMmHz4DdbGQ=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-jod9wKuyhbY+/3NIEMZGoKIA1rT6Y4XoLKqYvzM5fAQ=";
|
||||
cargoHash = "sha256-cRMeaQUkm5YenLruM+l3BWkWQqYhtRpb4s9HyzRn71k=";
|
||||
|
||||
# use the non-vendored openssl
|
||||
env.OPENSSL_NO_VENDOR = 1;
|
||||
@@ -30,9 +30,10 @@ rustPlatform.buildRustPackage rec {
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
];
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
# could not compile `c2pa` (lib test) due to 102 previous errors
|
||||
doCheck = false;
|
||||
|
||||
checkFlags = [
|
||||
# These tests rely on additional executables to be compiled to "target/debug/".
|
||||
@@ -51,18 +52,16 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line tool for displaying and adding C2PA manifests";
|
||||
homepage = "https://github.com/contentauth/c2patool";
|
||||
license = with licenses; [
|
||||
meta = {
|
||||
description = "Command line tool for working with C2PA manifests and media assets";
|
||||
homepage = "https://github.com/contentauth/c2pa-rs/tree/main/cli";
|
||||
license = with lib.licenses; [
|
||||
asl20 # or
|
||||
mit
|
||||
];
|
||||
maintainers = with maintainers; [ ok-nick ];
|
||||
maintainers = with lib.maintainers; [ ok-nick ];
|
||||
mainProgram = "c2patool";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user