summary refs log tree commit diff
path: root/pkgs/development/libraries/gettext
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2015-04-08 10:53:54 +0200
committerLuca Bruno <lethalman88@gmail.com>2015-04-25 11:48:23 +0200
commitd4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9 (patch)
treec30895866bd7c642fa81f5eb58a40151cdc4bd52 /pkgs/development/libraries/gettext
parentcbfd3056b562356c47262e3ed850e9805190a911 (diff)
downloadnixpkgs-d4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9.tar
nixpkgs-d4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9.tar.gz
nixpkgs-d4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9.tar.bz2
nixpkgs-d4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9.tar.lz
nixpkgs-d4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9.tar.xz
nixpkgs-d4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9.tar.zst
nixpkgs-d4a0cd2a940e7f65c9e93565dfb4d5eb117f7fb9.zip
Add gettextWithExpat function
Diffstat (limited to 'pkgs/development/libraries/gettext')
-rw-r--r--pkgs/development/libraries/gettext/expat.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gettext/expat.nix b/pkgs/development/libraries/gettext/expat.nix
new file mode 100644
index 00000000000..fc6116b3916
--- /dev/null
+++ b/pkgs/development/libraries/gettext/expat.nix
@@ -0,0 +1,10 @@
+{ runCommand, gettext, expat, makeWrapper }:
+
+runCommand "gettext-expat-${gettext.name}" { buildInputs = [ makeWrapper ]; } ''
+  mkdir $out
+  cp -rf ${gettext}/* $out/
+  chmod a+w $out/bin
+  for p in $out/bin/*; do
+    wrapProgram $p --prefix LD_LIBRARY_PATH : ${expat}/lib
+  done
+''