From f7cfcbd1f9bddb8ad6f99c9e8cb1a91ff5dd30ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 29 Nov 2010 23:51:24 +0000 Subject: [PATCH] Making gpm generate proper files in $out/lib, that allow good cross-linking. I had to do this to get the FB driver in links2 - it wants gpm to build, and without these changes, the "-lgpm" did not work. svn path=/nixpkgs/branches/stdenv-updates/; revision=24932 --- pkgs/servers/gpm/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/gpm/default.nix b/pkgs/servers/gpm/default.nix index 9ae20cd2c13..cb664eac253 100644 --- a/pkgs/servers/gpm/default.nix +++ b/pkgs/servers/gpm/default.nix @@ -15,7 +15,16 @@ stdenv.mkDerivation rec { '' sed -e 's/[$](MKDIR)/mkdir -p /' -i doc/Makefile.in ''; - + + # Its configure script does not allow --disable-static + # Disabling this, we make cross-builds easier, because having + # cross-built static libraries we either have to disable stripping + # or fixing the gpm users, because there -lgpm will fail. + postInstall = '' + rm -f $out/lib/*.a + ln -s $out/lib/libgpm.so.2 $out/lib/libgpm.so + ''; + meta = { homepage = http://www.nico.schottelius.org/software/gpm/; description = "A daemon that provides mouse support on the Linux console";