ocamlPackages.linol: use finalAttrs pattern

This commit is contained in:
Yifei Sun
2025-09-25 15:00:02 +02:00
parent 73432f59e1
commit cb98bc068d
@@ -9,7 +9,7 @@
yojson,
}:
buildDunePackage rec {
buildDunePackage (finalAttrs: {
pname = "linol";
version = "0.10";
@@ -18,7 +18,7 @@ buildDunePackage rec {
src = fetchFromGitHub {
owner = "c-cube";
repo = "linol";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-G/5nTJd+MxPgNObKW2Hmmwn4HejQ81c3f4oVXjpNSZg=";
};
@@ -33,11 +33,11 @@ buildDunePackage rec {
meta = {
description = "LSP server library";
homepage = "https://github.com/c-cube/linol";
changelog = "https://raw.githubusercontent.com/c-cube/linol/refs/tags/v${version}/CHANGES.md";
changelog = "https://raw.githubusercontent.com/c-cube/linol/refs/tags/v${finalAttrs.version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
stepbrobd
ulrikstrid
];
};
}
})