Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 34 lines 716 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "pdfrip"; 9 version = "2.0.1"; 10 11 src = fetchFromGitHub { 12 owner = "mufeedvh"; 13 repo = "pdfrip"; 14 tag = "v${version}"; 15 hash = "sha256-9KDWd71MJ2W9Xp3uqp0iZMmkBwIay+L4gnPUt7hylS0="; 16 }; 17 18 cargoLock = { 19 lockFile = ./Cargo.lock; 20 }; 21 22 postPatch = '' 23 ln -s ${./Cargo.lock} Cargo.lock 24 ''; 25 26 meta = { 27 description = "PDF password cracking utility"; 28 homepage = "https://github.com/mufeedvh/pdfrip"; 29 changelog = "https://github.com/mufeedvh/pdfrip/releases/tag/v${version}"; 30 license = lib.licenses.mit; 31 maintainers = with lib.maintainers; [ fab ]; 32 mainProgram = "pdfrip"; 33 }; 34}