2010-05-19 22:59:20 +02:00
|
|
|
{ stdenv, gnupg, coreutils, writeScript }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-03-27 21:47:38 +02:00
|
|
|
name = "gnupg1compat-${gnupg.version}";
|
2010-05-19 22:59:20 +02:00
|
|
|
|
|
|
|
builder = writeScript "gnupg1compat-builder" ''
|
|
|
|
# First symlink all top-level dirs
|
|
|
|
${coreutils}/bin/mkdir -p $out
|
2016-03-11 10:54:18 +01:00
|
|
|
${coreutils}/bin/ln -s "${gnupg}/"* $out
|
2010-05-19 22:59:20 +02:00
|
|
|
|
|
|
|
# Replace bin with directory and symlink it contents
|
|
|
|
${coreutils}/bin/rm $out/bin
|
|
|
|
${coreutils}/bin/mkdir -p $out/bin
|
2016-03-11 10:54:18 +01:00
|
|
|
${coreutils}/bin/ln -s "${gnupg}/bin/"* $out/bin
|
2010-05-19 22:59:20 +02:00
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2017-03-27 21:47:38 +02:00
|
|
|
meta = gnupg.meta // {
|
|
|
|
description = gnupg.meta.description +
|
|
|
|
" with symbolic links for gpg and gpgv";
|
2017-04-04 15:48:55 +02:00
|
|
|
priority = -1;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2010-05-19 22:59:20 +02:00
|
|
|
}
|