summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/3.16
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2015-08-14 21:08:06 +0200
committerLuca Bruno <lucabru@src.gnome.org>2015-08-14 21:08:06 +0200
commitc4358e0278b8a8cde6014a6656aab20cccc231b9 (patch)
treebbe90251aa18ba88864cad547fbd0ab2da337e91 /pkgs/desktops/gnome-3/3.16
parent529596fd316fa6f31a9f39f537939c0bc971543f (diff)
downloadnixpkgs-c4358e0278b8a8cde6014a6656aab20cccc231b9.tar
nixpkgs-c4358e0278b8a8cde6014a6656aab20cccc231b9.tar.gz
nixpkgs-c4358e0278b8a8cde6014a6656aab20cccc231b9.tar.bz2
nixpkgs-c4358e0278b8a8cde6014a6656aab20cccc231b9.tar.lz
nixpkgs-c4358e0278b8a8cde6014a6656aab20cccc231b9.tar.xz
nixpkgs-c4358e0278b8a8cde6014a6656aab20cccc231b9.tar.zst
nixpkgs-c4358e0278b8a8cde6014a6656aab20cccc231b9.zip
gjs: fix readline reference in .la file
Diffstat (limited to 'pkgs/desktops/gnome-3/3.16')
-rw-r--r--pkgs/desktops/gnome-3/3.16/core/gjs/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/desktops/gnome-3/3.16/core/gjs/default.nix b/pkgs/desktops/gnome-3/3.16/core/gjs/default.nix
index b736e1cd812..792e34c7b14 100644
--- a/pkgs/desktops/gnome-3/3.16/core/gjs/default.nix
+++ b/pkgs/desktops/gnome-3/3.16/core/gjs/default.nix
@@ -1,5 +1,5 @@
 { fetchurl, stdenv, pkgconfig, gnome3, gtk3, gobjectIntrospection
-, spidermonkey_24, pango, readline, glib }:
+, spidermonkey_24, pango, readline, glib, libxml2 }:
 
 let
   majorVersion = "1.43";
@@ -12,10 +12,14 @@ stdenv.mkDerivation rec {
     sha256 = "0khwm8l6m6x71rwf3q92d6scbhmrpiw7kqmj34nn588fb7a4vdc2";
   };
 
-  buildInputs = [ gobjectIntrospection pkgconfig gtk3 glib pango readline ];
+  buildInputs = [ libxml2 gobjectIntrospection pkgconfig gtk3 glib pango readline ];
 
   propagatedBuildInputs = [ spidermonkey_24 ];
 
+  postInstall = ''
+    sed 's|-lreadline|-L${readline}/lib -lreadline|g' -i $out/lib/libgjs.la
+  '';
+
   meta = with stdenv.lib; {
     maintainers = gnome3.maintainers;
     platforms = platforms.linux;