forked from mirrors/nixpkgs
Move libXaw fix from default.nix to overrides.nix.
svn path=/nixpkgs/trunk/; revision=17620
This commit is contained in:
parent
67cea803fa
commit
b9b57c6149
|
@ -665,19 +665,6 @@ let
|
|||
sha256 = "1yaslcpj6sd6s8gx2hv60gfjf515gggd8f2jv4zqbp5q9wcapx0i";
|
||||
};
|
||||
buildInputs = [pkgconfig printproto libX11 libXau libXext xextproto libXmu libXp libXpm xproto libXt ];
|
||||
|
||||
# The libXaw installation is broken on MacOS X. The package has hard-coded
|
||||
# know-how that assumes shared libraries use an .so suffix. MacOS, however,
|
||||
# uses .dylib. Furthermore, the package fails to install an unversioned
|
||||
# libtool .la file for the library.
|
||||
postInstall = ''
|
||||
cd $out/lib
|
||||
ln -s libXaw8.la libXaw.la
|
||||
if [ ${stdenv.system} = "i686-darwin" ]; then
|
||||
rm *.so*
|
||||
ln -s libXaw8.dylib libXaw.dylib
|
||||
fi
|
||||
'';
|
||||
})) // {inherit printproto libX11 libXau libXext xextproto libXmu libXp libXpm xproto libXt ;};
|
||||
|
||||
libXcomposite = (stdenv.mkDerivation ((if overrides ? libXcomposite then overrides.libXcomposite else x: x) {
|
||||
|
|
|
@ -23,6 +23,21 @@
|
|||
patchPhase = "sed -i '/USE_GETTEXT_TRUE/d' sxpm/Makefile.in cxpm/Makefile.in";
|
||||
};
|
||||
|
||||
libXaw = attrs: attrs // {
|
||||
# The libXaw installation is broken on MacOS X. The package has hard-coded
|
||||
# know-how that assumes shared libraries use an .so suffix. MacOS, however,
|
||||
# uses .dylib. Furthermore, the package fails to install an unversioned
|
||||
# libtool .la file for the library.
|
||||
postInstall = ''
|
||||
cd $out/lib
|
||||
ln -s libXaw8.la libXaw.la
|
||||
if [ ${args.stdenv.system} = "i686-darwin" ]; then
|
||||
rm *.so*
|
||||
ln -s libXaw8.dylib libXaw.dylib
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
setxkbmap = attrs: attrs // {
|
||||
postInstall =
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue