diff options
author | Colin Arnott <colin@urandom.co.uk> | 2022-12-03 19:49:00 +0000 |
---|---|---|
committer | Colin Arnott <colin@urandom.co.uk> | 2022-12-04 06:12:18 +0000 |
commit | bac379f30a6fa1284e48b4224862e0b41ad42199 (patch) | |
tree | 0bad9b7cbe730a740ec027e19d34e1c237f058db /doc/old | |
parent | 88ae5d08250e206aad599c1bb9692bd9b3dd54c2 (diff) |
doc: use sri hash syntax
The nixpkgs manual contains references to both sri hash and explicit sha256 attributes. This is at best confusing to new users. Since the final destination is exclusive use of sri hashes, see nixos/rfcs#131, might as well push new users in that direction gently. Notable exceptions to sri hash support are builtins.fetchTarball, cataclysm-dda, coq, dockerTools.pullimage, elixir.override, and fetchCrate. None, other than builtins.fetchTarball, are fundamentally incompatible, but all currently accept explicit sha256 attributes as input. Because adding backwards compatibility is out of scope for this change, they have been left intact, but migration to sri format has been made for any using old hash formats. All hashes have been manually tested to be accurate, and updates were only made for missing upstream artefacts or bugs.
Diffstat (limited to 'doc/old')
-rw-r--r-- | doc/old/cross.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/old/cross.txt b/doc/old/cross.txt index 064ca8d37b01d..11292edccaf22 100644 --- a/doc/old/cross.txt +++ b/doc/old/cross.txt @@ -61,7 +61,7 @@ stdenv.mkDerivation { builder = ./builder.sh; src = fetchurl { url = "http://ftp.nluug.nl/gnu/binutils/binutils-2.16.1.tar.bz2"; - sha256 = "1ian3kwh2vg6hr3ymrv48s04gijs539vzrq62xr76bxbhbwnz2np"; + hash = "sha256-14pv+YKrL3NyFwbnv9MoWsZHgEZk5+pHhuZtAfkcVsU="; }; inherit noSysDirs; configureFlags = [ "--target=arm-linux" ]; @@ -85,7 +85,7 @@ stdenv.mkDerivation { builder = ./builder.sh; src = fetchurl { url = "http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.1.tar.bz2"; - sha256 = "12qxmc827fjhaz53kjy7vyrzsaqcg78amiqsb3qm20z26w705lma"; + hash = "sha256-qtICDjfiA1HxWBrHqtB5DCv9s9/HyznKV1C6IxCrHYs="; }; } --- @@ -151,8 +151,8 @@ stdenv.mkDerivation { name = "gcc-4.0.2-arm"; builder = ./builder.sh; src = fetchurl { - url = ftp://ftp.nluug.nl/pub/gnu/gcc/gcc-4.0.2/gcc-core-4.0.2.tar.bz2; - sha256 = "02fxh0asflm8825w23l2jq1wvs7hbnam0jayrivg7zdv2ifnc0rc"; + url = "ftp://ftp.nluug.nl/pub/gnu/gcc/gcc-4.0.2/gcc-core-4.0.2.tar.bz2"; + hash = "sha256-LANmXRS7/fN2zF5JUJVd8OjNA5aCDsGLQKhSpxWA3Qk="; }; # !!! apply only if noSysDirs is set patches = [./no-sys-dirs.patch ./gcc-inhibit.patch]; |