Skip to content

Commit a197a46

Browse files
committed
ocamlPackages.middleware: migrate to finalAttrs
1 parent f8066c3 commit a197a46

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkgs/development/ocaml-modules/middleware/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
alcotest,
66
}:
77

8-
buildDunePackage rec {
8+
buildDunePackage (finalAttrs: {
99
pname = "middleware";
1010
version = "0.0.1";
1111

1212
minimalOCamlVersion = "4.14.0";
1313

1414
src = fetchurl {
15-
url = "https://github.com/skolemlabs/middleware/releases/download/${version}/${pname}-${version}.tbz";
15+
url = "https://github.com/skolemlabs/middleware/releases/download/${finalAttrs.version}/middleware-${finalAttrs.version}.tbz";
1616
hash = "sha256-zhLEGvyZiKrdBKWcEbB4PHvYzBlkrp1Ldnon0mP2Ypg=";
1717
};
1818

@@ -25,8 +25,8 @@ buildDunePackage rec {
2525
meta = {
2626
description = "Composable stacked functions, which can respond to inner calls";
2727
homepage = "https://github.com/skolemlabs/middleware";
28-
changelog = "https://github.com/skolemlabs/middleware/blob/${version}/CHANGES.md";
28+
changelog = "https://github.com/skolemlabs/middleware/blob/${finalAttrs.version}/CHANGES.md";
2929
license = lib.licenses.mit;
3030
maintainers = with lib.maintainers; [ sixstring982 ];
3131
};
32-
}
32+
})

0 commit comments

Comments
 (0)