blob: eadfbe230b3fbcea6fbffbd4dedfd872834e3d8d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ 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;
};
}
|