* Install the Xen manpages.
svn path=/nixpkgs/trunk/; revision=24109
This commit is contained in:
parent
3b018566d6
commit
d11c271dcb
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, which, zlib, pkgconfig, SDL, openssl, python
|
{ stdenv, fetchurl, which, zlib, pkgconfig, SDL, openssl, python
|
||||||
, libuuid, gettext, ncurses, dev86, iasl, pciutils, bzip2, xz
|
, libuuid, gettext, ncurses, dev86, iasl, pciutils, bzip2, xz
|
||||||
, lvm2, utillinux, procps, texinfo }:
|
, lvm2, utillinux, procps, texinfo, perl }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -8,6 +8,8 @@ let
|
|||||||
|
|
||||||
version = "4.0.1";
|
version = "4.0.1";
|
||||||
|
|
||||||
|
libDir = if stdenv.is64bit then "lib64" else "lib";
|
||||||
|
|
||||||
# Sources needed to build the stubdoms.
|
# Sources needed to build the stubdoms.
|
||||||
|
|
||||||
stubdomSrcs =
|
stubdomSrcs =
|
||||||
@ -46,7 +48,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ which zlib pkgconfig SDL openssl python libuuid gettext ncurses
|
[ which zlib pkgconfig SDL openssl python libuuid gettext ncurses
|
||||||
dev86 iasl pciutils bzip2 xz texinfo
|
dev86 iasl pciutils bzip2 xz texinfo perl
|
||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = "PREFIX=$(out) CONFIG_DIR=/etc";
|
makeFlags = "PREFIX=$(out) CONFIG_DIR=/etc";
|
||||||
@ -82,6 +84,12 @@ stdenv.mkDerivation {
|
|||||||
substituteInPlace tools/python/xen/xend/XendQCoWStorageRepo.py \
|
substituteInPlace tools/python/xen/xend/XendQCoWStorageRepo.py \
|
||||||
--replace /usr/sbin/qcow-create $out/sbin/qcow-create
|
--replace /usr/sbin/qcow-create $out/sbin/qcow-create
|
||||||
|
|
||||||
|
substituteInPlace tools/python/xen/remus/save.py \
|
||||||
|
--replace /usr/lib/xen/bin/xc_save $out/${libDir}/xen/bin/xc_save
|
||||||
|
|
||||||
|
substituteInPlace tools/python/xen/remus/device.py \
|
||||||
|
--replace /usr/lib/xen/bin/imqebt $out/${libDir}/xen/bin/imqebt
|
||||||
|
|
||||||
# Xen's stubdoms need various sources that it usually fetches at
|
# Xen's stubdoms need various sources that it usually fetches at
|
||||||
# build time using wget. We can't have that.
|
# build time using wget. We can't have that.
|
||||||
${flip concatMapStrings stubdomSrcs (x: let src = fetchurl x; in ''
|
${flip concatMapStrings stubdomSrcs (x: let src = fetchurl x; in ''
|
||||||
@ -89,11 +97,17 @@ stdenv.mkDerivation {
|
|||||||
'')}
|
'')}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postBuild =
|
||||||
|
''
|
||||||
|
make -C docs man-pages
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
cp -prvd dist/install/nix/store/* $out
|
cp -prvd dist/install/nix/store/* $out
|
||||||
cp -prvd dist/install/boot $out/boot
|
cp -prvd dist/install/boot $out/boot
|
||||||
cp -prvd dist/install/etc $out/etc
|
cp -prvd dist/install/etc $out/etc
|
||||||
|
cp -dR docs/man1 docs/man5 $out/share/man/
|
||||||
''; # */
|
''; # */
|
||||||
|
|
||||||
postFixup =
|
postFixup =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user