Merge pull request #231584 from figsoda/paperoni

paperoni: update Cargo.lock and unpin openssl
This commit is contained in:
Martin Weinelt 2023-05-13 17:10:03 +02:00 committed by GitHub
commit a157e8301a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3039 additions and 11 deletions

3014
pkgs/tools/text/paperoni/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,11 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, curl
, stdenv
, pkg-config
, zlib
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
@ -18,17 +19,33 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-vTylnDtoPpiRtk/vew1hLq3g8pepWRVqBEBnvSif4Zw=";
};
cargoSha256 = "sha256-iLEIGuVB9ykNcwbXk/donDdBuMvitM54Ax6bszVGaO0=";
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
nativeBuildInputs = [
curl
] ++ lib.optionals stdenv.isLinux [
pkg-config
];
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
buildInputs = [
curl
zlib
] ++ lib.optionals stdenv.isLinux [
openssl
];
# update Cargo.lock to work with openssl 3
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
meta = with lib; {
description = "An article extractor in Rust";
homepage = "https://github.com/hipstermojo/paperoni";
changelog = "https://github.com/hipstermojo/paperoni/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
maintainers = with maintainers; [ marsam ];
};
}

View File

@ -10960,10 +10960,7 @@ with pkgs;
paperless-ngx = callPackage ../applications/office/paperless-ngx { };
paperoni = callPackage ../tools/text/paperoni {
inherit (darwin.apple_sdk.frameworks) Security;
openssl = openssl_1_1;
};
paperoni = callPackage ../tools/text/paperoni { };
paperwork = callPackage ../applications/office/paperwork/paperwork-gtk.nix { };