Commit eb2768b3 authored by Guy Chronister's avatar Guy Chronister
Browse files

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.
parent 4a757396
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ let
    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 ];
@@ -70,14 +70,14 @@ stdenv.mkDerivation (finalAttrs: {
    $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;
  };
})