znapzend: fix CPAN src URL and qualify meta attributes

- hardcode `Mojo-Log-Clearable` in CPAN fetch URL instead of interpolating pname
- drop `with lib;` in `meta` and fully qualify attributes:
- `lib.licenses.gpl3`
- `lib.maintainers`
- `lib.platforms.all`

This improves reproducibility of the CPAN dependency fetch and aligns
the package with current Nixpkgs style for attribute qualification.

Changed files
+5 -5
pkgs
by-name
zn
znapzend
+5 -5
pkgs/by-name/zn/znapzend/package.nix
···
pname = "Mojo-Log-Clearable";
version = "1.001";
src = fetchurl {
-
url = "mirror://cpan/authors/id/D/DB/DBOOK/${pname}-${version}.tar.gz";
+
url = "mirror://cpan/authors/id/D/DB/DBOOK/Mojo-Log-Clearable-${version}.tar.gz";
hash = "sha256-guBqKdWemc4mC/xp77Wd7qeV2iRqY4wrQ5NRsHtsCnI=";
};
buildInputs = with perl.pkgs; [ ModuleBuildTiny ];
···
$out/bin/znapzend --version
'';
-
meta = with lib; {
+
meta = {
description = "High performance open source ZFS backup with mbuffer and ssh support";
homepage = "https://www.znapzend.org";
-
license = licenses.gpl3;
-
maintainers = with maintainers; [
+
license = lib.licenses.gpl3;
+
maintainers = with lib.maintainers; [
otwieracz
ma27
];
-
platforms = platforms.all;
+
platforms = lib.platforms.all;
};
})