mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
[changelog](https://github.com/mufeedvh/pdfrip/releases/tag/v3.0.0) the new version includes a Cargo.lock file in the repository, therefore pdfrip/Cargo.lock can be deleted and removed from package.nix
29 lines
706 B
Nix
29 lines
706 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "pdfrip";
|
|
version = "3.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mufeedvh";
|
|
repo = "pdfrip";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-VytsSVcKx1/A9BSlmRdkD61txDvFOaSfG411565q9eY=";
|
|
};
|
|
|
|
cargoHash = "sha256-JKZ29fW/B4rJe6g6VKkgZdxlA2eaaAgjztFQ/5kDF1o=";
|
|
|
|
meta = {
|
|
description = "PDF password cracking utility";
|
|
homepage = "https://github.com/mufeedvh/pdfrip";
|
|
changelog = "https://github.com/mufeedvh/pdfrip/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "pdfrip";
|
|
};
|
|
})
|