mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 16:11:58 +00:00
e34ce9d1c5
This release in a RC for gnupg-2.2. The main difference as far as nixpkgs is concerned is that the binary `gpg2` is now called `gpg` and `gpgv2` is called `gpgv`. This update fixed all explicit use of `gpg2` and `gpgv2` across nixpkgs, but there might be some packaged software that internally use `gpg2` not handeled by this commit. See http://lists.gnu.org/archive/html/info-gnu/2017-08/msg00001.html for full release information
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ fetchurl, stdenv, ncurses, gnupg }:
|
|
|
|
let version = "0.7.4";
|
|
in stdenv.mkDerivation {
|
|
# mdp renamed to gpg-mdp because there is a mdp package already.
|
|
name = "gpg-mdp-${version}";
|
|
meta = {
|
|
homepage = https://tamentis.com/projects/mdp/;
|
|
license = [stdenv.lib.licenses.isc];
|
|
description = "Manage your passwords with GnuPG and a text editor";
|
|
};
|
|
src = fetchurl {
|
|
url = "https://tamentis.com/projects/mdp/files/mdp-${version}.tar.gz";
|
|
sha256 = "04mdnx4ccpxf9m2myy9nvpl9ma4jgzmv9bkrzv2b9affzss3r34g";
|
|
};
|
|
buildInputs = [ ncurses ];
|
|
prePatch = ''
|
|
substituteInPlace ./configure \
|
|
--replace "alias echo=/bin/echo" ""
|
|
|
|
substituteInPlace ./src/config.c \
|
|
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg" \
|
|
--replace "/usr/bin/vi" "vi"
|
|
|
|
substituteInPlace ./mdp.1 \
|
|
--replace "/usr/bin/gpg" "${gnupg}/bin/gpg"
|
|
'';
|
|
# we add symlinks to the binary and man page with the name 'gpg-mdp', in case
|
|
# the completely unrelated program also named 'mdp' is already installed.
|
|
postFixup = ''
|
|
ln -s $out/bin/mdp $out/bin/gpg-mdp
|
|
ln -s $out/share/man/man1/mdp.1.gz $out/share/man/man1/gpg-mdp.1.gz
|
|
'';
|
|
}
|