From 2a4d344b9a682a19c7f559e327d7ce88c9f2ef77 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 13 Jan 2025 19:45:51 +0400 Subject: [PATCH] protozero: modernize --- pkgs/by-name/pr/protozero/package.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/pr/protozero/package.nix b/pkgs/by-name/pr/protozero/package.nix index 90fd578802527..780c12af43529 100644 --- a/pkgs/by-name/pr/protozero/package.nix +++ b/pkgs/by-name/pr/protozero/package.nix @@ -5,30 +5,30 @@ cmake, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "protozero"; version = "1.8.0"; src = fetchFromGitHub { owner = "mapbox"; repo = "protozero"; - rev = "v${version}"; - sha256 = "sha256-kqR0YLxkRu8WclxaoR/zx+2sRTEZus7dUTbqjBkv12U="; + tag = "v${finalAttrs.version}"; + hash = "sha256-kqR0YLxkRu8WclxaoR/zx+2sRTEZus7dUTbqjBkv12U="; }; nativeBuildInputs = [ cmake ]; - meta = with lib; { + meta = { description = "Minimalistic protocol buffer decoder and encoder in C++"; homepage = "https://github.com/mapbox/protozero"; - license = with licenses; [ + license = with lib.licenses; [ bsd2 asl20 ]; changelog = [ - "https://github.com/mapbox/protozero/releases/tag/v${version}" - "https://github.com/mapbox/protozero/blob/v${version}/CHANGELOG.md" + "https://github.com/mapbox/protozero/releases/tag/v${finalAttrs.version}" + "https://github.com/mapbox/protozero/blob/v${finalAttrs.version}/CHANGELOG.md" ]; - maintainers = with maintainers; teams.geospatial.members ++ [ das-g ]; + maintainers = lib.teams.geospatial.members ++ (with lib.maintainers; [ das-g ]); }; -} +})