zlib: Use finalAttrs instead of rec

This commit is contained in:
John Ericson 2023-02-03 08:31:25 -05:00
parent 606337f4c7
commit 3dcde1c342

View file

@ -21,11 +21,13 @@ assert shared || static;
assert splitStaticOutput -> static; assert splitStaticOutput -> static;
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "zlib"; pname = "zlib";
version = "1.2.13"; version = "1.2.13";
src = fetchurl { src = let
inherit (finalAttrs) version;
in fetchurl {
urls = [ urls = [
# This URL works for 1.2.13 only; hopefully also for future releases. # This URL works for 1.2.13 only; hopefully also for future releases.
"https://github.com/madler/zlib/releases/download/v${version}/zlib-${version}.tar.gz" "https://github.com/madler/zlib/releases/download/v${version}/zlib-${version}.tar.gz"
@ -131,4 +133,4 @@ stdenv.mkDerivation rec {
license = licenses.zlib; license = licenses.zlib;
platforms = platforms.all; platforms = platforms.all;
}; };
} })