Unverified Commit e86f2120 authored by Guy Chronister's avatar Guy Chronister
Browse files

ocamlPackages.mirage-crypto: migrate to finalAttrs

parent 1a692f94
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -10,14 +10,14 @@
  ocaml-freestanding,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  minimalOCamlVersion = "4.13";

  pname = "mirage-crypto";
  version = "2.0.2";

  src = fetchurl {
    url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz";
    url = "https://github.com/mirage/mirage-crypto/releases/download/v${finalAttrs.version}/mirage-crypto-${finalAttrs.version}.tbz";
    hash = "sha256-c5qdOfNAJ/vJNVf4fFysQZClK92t/3LyEvqoA9YhWHQ=";
  };

@@ -38,7 +38,7 @@ buildDunePackage rec {
  meta = {
    homepage = "https://github.com/mirage/mirage-crypto";
    description = "Simple symmetric cryptography for the modern age";
    changelog = "https://raw.githubusercontent.com/mirage/mirage-crypto/refs/tags/v${version}/CHANGES.md";
    changelog = "https://raw.githubusercontent.com/mirage/mirage-crypto/refs/tags/v${finalAttrs.version}/CHANGES.md";
    license = with lib.licenses; [
      isc # default license
      bsd2 # mirage-crypto-rng-mirage
@@ -49,4 +49,4 @@ buildDunePackage rec {
      momeemt
    ];
  };
}
})