From d986e93072a3e5eb4d435e2268a13cd441dff19d Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Fri, 13 Oct 2023 14:50:05 +0200 Subject: [PATCH] sol2: use finalAttrs to reference version --- pkgs/development/libraries/sol2/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/sol2/default.nix b/pkgs/development/libraries/sol2/default.nix index c086d37e6c32..5ec615942545 100644 --- a/pkgs/development/libraries/sol2/default.nix +++ b/pkgs/development/libraries/sol2/default.nix @@ -4,13 +4,13 @@ , cmake , lua }: -stdenv.mkDerivation rec{ +stdenv.mkDerivation (finalAttrs: { pname = "sol2"; version = "3.3.1"; src = fetchFromGitHub { owner = "ThePhD"; repo = "sol2"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-7QHZRudxq3hdsfEAYKKJydc4rv6lyN6UIt/2Zmaejx8="; }; @@ -33,4 +33,4 @@ stdenv.mkDerivation rec{ license = licenses.mit; maintainers = with maintainers; [ mrcjkb ]; }; -} +})