Skip to content

Commit e67f08d

Browse files
committed
syslinux: migrate to fetchpatch and update hashes
1 parent 728ef7e commit e67f08d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pkgs/by-name/sy/syslinux/package.nix

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
stdenv,
44
fetchFromRepoOrCz,
55
gnu-efi,
6-
fetchurl,
76
fetchpatch,
87
libuuid,
98
makeWrapper,
@@ -31,28 +30,28 @@ stdenv.mkDerivation {
3130
archlinuxCommit = "db7884ec80642781edeead3e3bbd883a15b9b3ce";
3231
fetchArchlinuxPatch =
3332
name: hash:
34-
fetchurl {
33+
fetchpatch {
3534
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/syslinux/-/raw/${archlinuxCommit}/${name}";
3635
inherit name hash;
3736
};
3837
in
3938
[
4039
./gcc10.patch
41-
(fetchArchlinuxPatch "0002-gfxboot-menu-label.patch" "sha256-0f6QhM4lJmGflLige4n7AZTodL7vnyAvi5dIedd/Lho=")
42-
(fetchArchlinuxPatch "0005-gnu-efi-version-compatibility.patch" "sha256-hhCVnfbAFWj/R4yh60qsMB87ofW9RznarsByhl6L4tc=")
43-
(fetchArchlinuxPatch "0025-reproducible-build.patch" "sha256-mnb291pCSFvDNxY7o4BosJ94ib3BpOGRQIiY8Q3jZmI=")
40+
(fetchArchlinuxPatch "0002-gfxboot-menu-label.patch" "sha256-eoId3jn4eRxItil5naoGMBGOJM/p5FG74ePwxiJ0w/8=")
41+
(fetchArchlinuxPatch "0005-gnu-efi-version-compatibility.patch" "sha256-5oZ/24emWNPHx621v/9i2xU6rodpVCM0R18hCU35eDk=")
42+
(fetchArchlinuxPatch "0025-reproducible-build.patch" "sha256-vhth9CFHqChPQPgGhUWVpYwMFnnjoMVIGr7Wfu1jcDY=")
4443
(fetchArchlinuxPatch
4544
# mbr.bin: too big (452 > 440)
4645
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
4746
"0016-strip-gnu-property.patch"
48-
"sha256-lW+E6THuXlTGvhly0f/D9NwYHhkiKHot2l+bz9Eaxp4="
47+
"sha256-gn69YHbObqg6uTLPTtu8otNBFuCSyazwxLW3FbTNLX4="
4948
)
5049
(fetchArchlinuxPatch
5150
# mbr.bin: too big (452 > 440)
5251
"0017-single-load-segment.patch"
53-
"sha256-C6VmdlTs1blMGUHH3OfOlFBZsfpwRn9vWodwqVn8+Cs="
52+
"sha256-pGDcP62k50YkGgP0pFp5NSe7X0sojfLCzTmJtba2Yww="
5453
)
55-
(fetchArchlinuxPatch "0018-prevent-pow-optimization.patch" "sha256-dVzXBi/oSV9vYgU85mRFHBKuZdup+1x1BipJX74ED7E=")
54+
(fetchArchlinuxPatch "0018-prevent-pow-optimization.patch" "sha256-1+u8Kb6bxRbTPm0QCCt4yViLozzD/+/yspkJasOFM+g=")
5655
# Fixes build with "modern" gnu-efi
5756
./import-efisetjmp.patch
5857
# Upstream patch: https://www.syslinux.org/archives/2024-February/026903.html

0 commit comments

Comments
 (0)