mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
Merge pull request #97894 from TethysSvensson/fixBusybox
busybox: Fix 404 error by using git instead
This commit is contained in:
commit
f5fdc6b240
@ -12,7 +12,7 @@ let
|
|||||||
((optional (group != null) group) ++ [ owner repo ]);
|
((optional (group != null) group) ++ [ owner repo ]);
|
||||||
|
|
||||||
escapedSlug = replaceStrings ["." "/"] ["%2E" "%2F"] slug;
|
escapedSlug = replaceStrings ["." "/"] ["%2E" "%2F"] slug;
|
||||||
escapedRev = replaceStrings ["+"] ["%2B"] rev;
|
escapedRev = replaceStrings ["+" "%" "/"] ["%2B" "%25" "%2F"] rev;
|
||||||
in
|
in
|
||||||
|
|
||||||
fetchzip ({
|
fetchzip ({
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, buildPackages, fetchurl, fetchzip
|
{ stdenv, lib, buildPackages, fetchurl, fetchFromGitLab
|
||||||
, enableStatic ? false
|
, enableStatic ? false
|
||||||
, enableMinimal ? false
|
, enableMinimal ? false
|
||||||
# Allow forcing musl without switching stdenv itself, e.g. for our bootstrapping:
|
# Allow forcing musl without switching stdenv itself, e.g. for our bootstrapping:
|
||||||
@ -32,12 +32,18 @@ let
|
|||||||
CONFIG_FEATURE_WTMP n
|
CONFIG_FEATURE_WTMP n
|
||||||
'';
|
'';
|
||||||
|
|
||||||
debianName = "busybox_1.30.1-5";
|
# The debian version lacks behind the upstream version and also contains
|
||||||
debianTarball = fetchzip {
|
# a debian-specific suffix. We only fetch the debian repository to get the
|
||||||
url = "http://deb.debian.org/debian/pool/main/b/busybox/${debianName}.debian.tar.xz";
|
# default.script
|
||||||
sha256 = "03m4rvs2pd0hj0mdkdm3r4m1gh0bgwr0cvnqds297xnkfi5s01nx";
|
debianVersion = "1.30.1-6";
|
||||||
|
debianSource = fetchFromGitLab {
|
||||||
|
domain = "salsa.debian.org";
|
||||||
|
owner = "installer-team";
|
||||||
|
repo = "busybox";
|
||||||
|
rev = "debian/1%${debianVersion}";
|
||||||
|
sha256 = "sha256-6r0RXtmqGXtJbvLSD1Ma1xpqR8oXL2bBKaUE/cSENL8=";
|
||||||
};
|
};
|
||||||
debianDispatcherScript = "${debianTarball}/tree/udhcpc/etc/udhcpc/default.script";
|
debianDispatcherScript = "${debianSource}/debian/tree/udhcpc/etc/udhcpc/default.script";
|
||||||
outDispatchPath = "$out/default.script";
|
outDispatchPath = "$out/default.script";
|
||||||
in
|
in
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user