[Nix-dev] building ruby package utf-8 needed
Matthew O'Gorman
mog at rldn.net
Tue Sep 6 07:06:40 CEST 2016
I was able to get everything compiled and running by doing this to the
gem builder. I realize it's wrong way to do this as it effects all
pkgs. but something like this would work i think.
diff --git a/pkgs/development/ruby-modules/gem/default.nix b/pkgs/development/ruby-modules/gem/default.nix
index 347c4a7..a225a31 100644
--- a/pkgs/development/ruby-modules/gem/default.nix
+++ b/pkgs/development/ruby-modules/gem/default.nix
@@ -19,7 +19,7 @@
# $out/bin.
{ lib, fetchurl, fetchgit, makeWrapper, git, darwin
-, ruby, bundler
+, ruby, bundler, glibcLocales
} @ defs:
lib.makeOverridable (
@@ -82,7 +82,7 @@ stdenv.mkDerivation (attrs // {
inherit type;
buildInputs = [
- ruby makeWrapper
+ ruby makeWrapper glibcLocales
] ++ lib.optionals (type == "git") [ git bundler ]
++ lib.optional stdenv.isDarwin darwin.libobjc
++ buildInputs;
@@ -152,6 +152,9 @@ stdenv.mkDerivation (attrs // {
installPhase = attrs.installPhase or ''
runHook preInstall
+ export LANG="en_US.UTF-8"
+ export LC_ALL="en_US.UTF-8"
+
export GEM_HOME=$out/${ruby.gemPath}
mkdir -p $GEM_HOME
--
Matthew O'Gorman
BM-NBUmia4p88Jny5bZbRGcMt64SWWp5WVv
TorChat: 5w3dtk7nhkkijcpc
Site: https://b.rldn.net
Xim/Email: mog at rldn.net
mog at rldn:~$ fortune wisdom -s|cowsay -f /dev/null
_________________________________________
/ Well, you know, no matter where you go, \
| there you are. |
| |
\ -- Buckaroo Banzai /
-----------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160906/a2754319/attachment.sig>
More information about the nix-dev
mailing list