mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-08 23:03:07 +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
23 lines
609 B
Nix
23 lines
609 B
Nix
{ stdenv, gnupg, coreutils, writeScript }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "gnupg1compat-${gnupg.version}";
|
|
|
|
builder = writeScript "gnupg1compat-builder" ''
|
|
# First symlink all top-level dirs
|
|
${coreutils}/bin/mkdir -p $out
|
|
${coreutils}/bin/ln -s "${gnupg}/"* $out
|
|
|
|
# Replace bin with directory and symlink it contents
|
|
${coreutils}/bin/rm $out/bin
|
|
${coreutils}/bin/mkdir -p $out/bin
|
|
${coreutils}/bin/ln -s "${gnupg}/bin/"* $out/bin
|
|
'';
|
|
|
|
meta = gnupg.meta // {
|
|
description = gnupg.meta.description +
|
|
" with symbolic links for gpg and gpgv";
|
|
priority = -1;
|
|
};
|
|
}
|