Merge pull request #56556 from hhm0/toybox_onedir
toybox: install all binary links in one directory
This commit is contained in:
commit
2c613a48ca
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
stdenv, lib, fetchFromGitHub, buildPackages,
|
stdenv, lib, fetchFromGitHub, which,
|
||||||
enableStatic ? false,
|
enableStatic ? false,
|
||||||
enableMinimal ? false,
|
enableMinimal ? false,
|
||||||
extraConfig ? ""
|
extraConfig ? ""
|
||||||
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = lib.optionals enableStatic [ stdenv.cc.libc stdenv.cc.libc.static ];
|
buildInputs = lib.optionals enableStatic [ stdenv.cc.libc stdenv.cc.libc.static ];
|
||||||
|
|
||||||
postPatch = "patchShebangs scripts";
|
postPatch = "patchShebangs .";
|
||||||
|
|
||||||
inherit extraConfig;
|
inherit extraConfig;
|
||||||
passAsFile = [ "extraConfig" ];
|
passAsFile = [ "extraConfig" ];
|
||||||
@ -43,12 +43,15 @@ stdenv.mkDerivation rec {
|
|||||||
make oldconfig
|
make oldconfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ] ++ lib.optional enableStatic "LDFLAGS=--static";
|
makeFlags = [ "PREFIX=$(out)/bin" ] ++ lib.optional enableStatic "LDFLAGS=--static";
|
||||||
|
|
||||||
|
installTargets = "install_flat";
|
||||||
|
|
||||||
# tests currently (as of 0.8.0) get stuck in an infinite loop...
|
# tests currently (as of 0.8.0) get stuck in an infinite loop...
|
||||||
# ...this is fixed in latest git, so doCheck can likely be enabled for next release
|
# ...this is fixed in latest git, so doCheck can likely be enabled for next release
|
||||||
# see https://github.com/landley/toybox/commit/b928ec480cd73fd83511c0f5ca786d1b9f3167c3
|
# see https://github.com/landley/toybox/commit/b928ec480cd73fd83511c0f5ca786d1b9f3167c3
|
||||||
#doCheck = true;
|
#doCheck = true;
|
||||||
|
checkInputs = [ which ]; # used for tests with checkFlags = [ "DEBUG=true" ];
|
||||||
checkTarget = "tests";
|
checkTarget = "tests";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user