3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/phrasendrescher/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

29 lines
798 B
Nix

{ lib, stdenv, fetchurl, openssl, libssh2, gpgme }:
stdenv.mkDerivation rec {
pname = "phrasendrescher";
version = "1.2.2c";
src = fetchurl {
url = "http://leidecker.info/projects/${pname}/${pname}-${version}.tar.gz";
sha256 = "18vg6h294219v14x5zqm8ddmq5amxlbz7pw81lcmpz8v678kwyph";
};
postPatch = ''
substituteInPlace configure \
--replace 'SSL_LIB="ssl"' 'SSL_LIB="crypto"'
'';
buildInputs = [ openssl libssh2 gpgme ];
configureFlags = [ "--with-plugins" ];
meta = with lib; {
description = "A modular and multi processing pass phrase cracking tool";
homepage = "https://leidecker.info/projects/phrasendrescher/index.shtml";
license = licenses.gpl2Plus;
platforms = platforms.all;
maintainers = with maintainers; [ bjornfor ];
};
}