aboutsummaryrefslogtreecommitdiff
path: root/nix/busybox.nix
blob: dab76a85f37cf21fd14e92aebf33734db0b6f997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchgit, linuxHeaders, mlib }:

stdenv.mkDerivation {
	name = "busybox-yerba";
	src = fetchgit {
		url = "https://git.eaguru.guru/mirrors/busybox.git"; # change this to the official git.busybox.net/busybox when their SSL comes back
		rev = "1_36_1";
		hash = "sha256-lK8jlq1g2X9AhscZDiPf43koNbdMFYiLSAb9Y/OETnU=";
	};
	buildInputs = [ linuxHeaders mlib ];
	nativeBuildInputs = [ linuxHeaders mlib ];
	preConfigure = ''
		cp ${./busybox_config} .config
	'';
	buildPhase = ''
		make -j$NIX_BUILD_CORES all
	'';
	installPhase = ''
		make install CONFIG_PREFIX=$out/_install
	'';
}