gnupg20: set version variable to fix gnupg1compat

Presently, gnupg1compat only works with gnupg22. Without this change, the error

```
error: attribute 'version' missing, at .../nixpkgs/pkgs/tools/security/gnupg/1compat.nix:4:26
```

is emitted when evaluating

```
pkgs.gnupg1compat.override { gnupg = pkgs.gnupg20; }'
```
This commit is contained in:
Charles Duffy 2018-10-06 12:21:05 -05:00
parent 9a5f7b1630
commit f7cd362ae4
No known key found for this signature in database
GPG Key ID: 551385576326AAC1

View File

@ -12,7 +12,8 @@ with stdenv.lib;
assert guiSupport -> pinentry != null; assert guiSupport -> pinentry != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gnupg-2.0.30"; name = "gnupg-${version}";
version = "2.0.30";
src = fetchurl { src = fetchurl {
url = "mirror://gnupg/gnupg/${name}.tar.bz2"; url = "mirror://gnupg/gnupg/${name}.tar.bz2";