mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
4a7f99d55d
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
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, gpgme }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nasty";
|
|
version = "0.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.vanheusden.com/nasty/${pname}-${version}.tgz";
|
|
sha256 = "1dznlxr728k1pgy1kwmlm7ivyl3j3rlvkmq34qpwbwbj8rnja1vn";
|
|
};
|
|
|
|
# does not apply cleanly with patchPhase/fetchpatch
|
|
# https://sources.debian.net/src/nasty/0.6-3/debian/patches/02_add_largefile_support.patch
|
|
CFLAGS = "-D_FILE_OFFSET_BITS=64";
|
|
|
|
buildInputs = [ gpgme ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp nasty $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Recover the passphrase of your PGP or GPG-key";
|
|
longDescription = ''
|
|
Nasty is a program that helps you to recover the passphrase of your PGP or GPG-key
|
|
in case you forget or lost it. It is mostly a proof-of-concept: with a different implementation
|
|
this program could be at least 100x faster.
|
|
'';
|
|
homepage = "http://www.vanheusden.com/nasty/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ davidak ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|