ocamlPackages.colors: migrate to finalAttrs
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
mdx,
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
buildDunePackage (finalAttrs: {
|
||||
pname = "colors";
|
||||
version = "0.0.1";
|
||||
|
||||
minimalOCamlVersion = "4.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/leostera/colors/releases/download/${version}/colors-${version}.tbz";
|
||||
url = "https://github.com/leostera/colors/releases/download/${finalAttrs.version}/colors-${finalAttrs.version}.tbz";
|
||||
hash = "sha256-fY1j9FODVnifwsI8qkKm0QSmssgWqYFXJ7y8o7/KmEY=";
|
||||
};
|
||||
|
||||
@@ -30,8 +30,8 @@ buildDunePackage rec {
|
||||
meta = {
|
||||
description = "Pure OCaml library for manipulating colors across color spaces";
|
||||
homepage = "https://github.com/leostera/colors";
|
||||
changelog = "https://github.com/leostera/colors/blob/${version}/CHANGES.md";
|
||||
changelog = "https://github.com/leostera/colors/blob/${finalAttrs.version}/CHANGES.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user