Hi, I’m trying to build OpenWRT using Nix, but I have a time with a failed check:
OpenWRT> Checking 'true'... failed.
OpenWRT> Checking 'false'... failed.
.
.
.
.
OpenWRT> Build dependency: Please install GNU 'coreutils'
the nix file:
{stdenv, fetchFromGitHub, runCommand, pkgs, openwrt-version, ...}:
let
in stdenv.mkDerivation {
src = fetchFromGitHub {
owner = "openwrt";
repo = "openwrt";
rev = "openwrt-${openwrt-version}";
hash = "sha256-Aef4sDgFBIyBPKVVYu4xMTupBr1PKahkxNaalyAK2H8=";
};
nativeBuildInputs = with pkgs; [
git
perl
gnumake
gcc
unzip
util-linux
python3
rsync
patch
wget
file
which
pkg-config
openssl
binutils
ncurses
zlib
coreutils-full
];
multiPkgs = null;
extraOutputsToInstall = [ "dev" ];
profile = ''
export hardeningDisable=all
'';
# doCheck = false;
dontConfigure = true;
# dontBuild = false;
dontInstall = true;
patchPhase = ''
patchShebangs scripts
'';
buildPhase = ''
make defconfig
'';
name = "OpenWRT ${openwrt-version}";
}
and the fail itself defined on a Makefile .mk file
$(eval $(call TestHostCommand,true, \
Please install GNU 'coreutils', \
$(TRUE)))
$(eval $(call TestHostCommand,false, \
Please install GNU 'coreutils', \
$(FALSE); [ $$$$$$$$? = 1 ] && $(TRUE)))
I don’t know why this two test fails, tested that true
and false
command works, so what you guys can see here?