fix(kexec-tools): build using autoconf
This commit is contained in:
parent
6f84c2c41d
commit
34c83b7c3b
1 changed files with 17 additions and 9 deletions
|
@ -4,6 +4,7 @@
|
|||
buildPackages,
|
||||
fetchFromGitHub,
|
||||
autoconf,
|
||||
autoreconfHook,
|
||||
zlib,
|
||||
}:
|
||||
|
||||
|
@ -27,20 +28,27 @@ stdenv.mkDerivation {
|
|||
"pie"
|
||||
];
|
||||
|
||||
buildCommand = ''
|
||||
unpackPhase
|
||||
mkdir -p $out
|
||||
cd source
|
||||
./bootstrap
|
||||
./configure --prefix=/
|
||||
make DESTDIR=$out install
|
||||
preAutoreconf = "./bootstrap";
|
||||
|
||||
configurePlatforms = [
|
||||
"build"
|
||||
"host"
|
||||
];
|
||||
|
||||
configureFlags = [ "BUILD_CC=${buildPackages.stdenv.cc.targetPrefix}cc" "--prefix=/"];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
installPhase = ''
|
||||
make DESTDIR=$out install
|
||||
'';
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
autoconf
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue