refine
This commit is contained in:
parent
769ef84cd3
commit
0e288ce0b1
1 changed files with 58 additions and 17 deletions
|
|
@ -7,7 +7,8 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
let
|
||||||
|
actual_xbuild=stdenv.mkDerivation {
|
||||||
pname = "xbuild";
|
pname = "xbuild";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
|
|
||||||
|
|
@ -28,4 +29,44 @@ stdenv.mkDerivation {
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
aclocal && automake --add-missing && autoconf
|
aclocal && automake --add-missing && autoconf
|
||||||
'';
|
'';
|
||||||
}
|
};
|
||||||
|
wrapped_xbuild = stdenv.mkDerivation {
|
||||||
|
name = "xbuild-wrapper";
|
||||||
|
|
||||||
|
unpackPhase = "true";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.makeWrapper
|
||||||
|
pkgs.pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pkgs.gnumake
|
||||||
|
pkgs.gcc
|
||||||
|
pkgs.coreutils
|
||||||
|
pkgs.bash
|
||||||
|
pkgs.strace
|
||||||
|
pkgs.go
|
||||||
|
pkgs.xxd
|
||||||
|
pkgs.patchelf
|
||||||
|
pkgs.linux-pam
|
||||||
|
pkgs.libtirpc
|
||||||
|
pkgs.hwloc
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
actual_xbuild
|
||||||
|
];
|
||||||
|
|
||||||
|
buildCommand = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
for bin in ${actual_xbuild}/bin/*; do
|
||||||
|
makeWrapper "$bin" "$out/bin/$(basename $bin)" \
|
||||||
|
--prefix PATH : ${pkgs.lib.makeBinPath wrapped_xbuild.buildInputs} \
|
||||||
|
--prefix PKG_CONFIG_PATH : ${pkgs.lib.makeSearchPathOutput "dev" "lib/pkgconfig" wrapped_xbuild.buildInputs} \
|
||||||
|
--set AUTO_DETECT_PKG_CONFIG_PATH no
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
wrapped_xbuild
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue