@@ -1,4 +1,9 @@
1−{ lib, stdenv, uclibc, fetchurl, enableStatic ? false, enableMinimal ? false, useUclibc ? false, extraConfig ? "" }:
1+{ stdenv, fetchurl, musl
2+, enableStatic ? false
3+, enableMinimal ? false
4+, useMusl ? false
5+, extraConfig ? ""
6+}:
27
38let
49 configParser = ''
@@ -21,11 +26,11 @@ let
2126in
2227
2328stdenv.mkDerivation rec {
24− name = "busybox-1.22.1";
29+ name = "busybox-1.23.2";
2530
2631 src = fetchurl {
2732 url = "http://busybox.net/downloads/${name}.tar.bz2";
28− sha256 = "12v7nri79v8gns3inmz4k24q7pcnwi00hybs0wddfkcy1afh42xf";
33+ sha256 = "16ii9sqracvh2r1gfzhmlypl269nnbkpvrwa7270k35d3bigk9h5";
2934 };
3035
3136 patches = [ ./busybox-in-store.patch ];
@@ -41,7 +46,7 @@ stdenv.mkDerivation rec {
4146 CONFIG_PREFIX "$out"
4247 CONFIG_INSTALL_NO_USR y
4348
44− ${lib.optionalString enableStatic ''
49+ ${stdenv.lib.optionalString enableStatic ''
4550 CONFIG_STATIC y
4651 ''}
4752
@@ -54,8 +59,8 @@ stdenv.mkDerivation rec {
5459 EOF
5560
5661 make oldconfig
57− '' + lib.optionalString useUclibc ''
58− makeFlagsArray+=("CC=gcc -isystem ${uclibc}/include -B${uclibc}/lib -L${uclibc}/lib")
62+ '' + stdenv.lib.optionalString useMusl ''
63+ makeFlagsArray+=("CC=gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib")
5964 '';
6065
6166 crossAttrs = {
@@ -69,11 +74,11 @@ stdenv.mkDerivation rec {
6974
7075 enableParallelBuilding = true;
7176
72− meta = {
77+ meta = with stdenv.lib; {
7378 description = "Tiny versions of common UNIX utilities in a single small executable";
7479 homepage = http://busybox.net/;
75− license = lib.licenses.gpl2;
76− maintainers = [ lib.maintainers.viric ];
77− platforms = lib.platforms.linux;
80+ license = licenses.gpl2;
81+ maintainers = with maintainers; [ viric ];
82+ platforms = platforms.linux;
7883 };
7984}