zlib: Use finalAttrs
instead of rec
This commit is contained in:
parent
606337f4c7
commit
3dcde1c342
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue