vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / by-name / pd / pdfrip / package.nix
blob04ba06049976a0a506c0e3e580320e8320ef0c1a
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 }:
6 rustPlatform.buildRustPackage rec {
7   pname = "pdfrip";
8   version = "2.0.1";
10   src = fetchFromGitHub {
11     owner = "mufeedvh";
12     repo = "pdfrip";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-9KDWd71MJ2W9Xp3uqp0iZMmkBwIay+L4gnPUt7hylS0=";
15   };
17   cargoLock = {
18     lockFile = ./Cargo.lock;
19   };
21   postPatch = ''
22     ln -s ${./Cargo.lock} Cargo.lock
23   '';
25   meta = with lib; {
26     description = "PDF password cracking utility";
27     homepage = "https://github.com/mufeedvh/pdfrip";
28     changelog = "https://github.com/mufeedvh/pdfrip/releases/tag/v${version}";
29     license = licenses.mit;
30     maintainers = with maintainers; [ fab ];
31     mainProgram = "pdfrip";
32   };