nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchurl
4}:
5
6stdenv.mkDerivation rec {
7 pname = "pdfcrack";
8 version = "0.20";
9
10 src = fetchurl {
11 url = "mirror://sourceforge/pdfcrack/pdfcrack/pdfcrack-${version}.tar.gz";
12 hash = "sha256-e4spsY/NXLmErrZA7gbt8J/t5HCbWcMv7k8thoYN5bQ=";
13 };
14
15 installPhase = ''
16 install -Dt $out/bin pdfcrack
17 '';
18
19 meta = with lib; {
20 homepage = "https://pdfcrack.sourceforge.net/";
21 description = "Small command line driven tool for recovering passwords and content from PDF files";
22 license = with licenses; [ gpl2Plus ];
23 platforms = platforms.all;
24 maintainers = with maintainers; [ qoelet ];
25 };
26}