[Nix-dev] building ruby package utf-8 needed

Matthew O'Gorman mog at rldn.net
Sun Sep 4 18:00:44 CEST 2016


I am trying to package a ruby package into nixpkgs and I am getting
stuck here.  How do I properly set the utf8 variables in the build? I
have tried setting LANG and LC_ALL but i don't know if it propigated
correctly. thanks for the help.

buildFlags: 
WARNING:  You build with buildroot.
  Build root: /
  Bin dir: /nix/store/w6m3vqirgnxhgllf6crrmamamz9k71jz-ruby2.3.1-p0-delayed_job-4.1.2/lib/ruby/gems/2.3.1/bin
  Gem home: /nix/store/w6m3vqirgnxhgllf6crrmamamz9k71jz-ruby2.3.1-p0-delayed_job-4.1.2/lib/ruby/gems/2.3.1
WARNING:  You build with buildroot.
  Build root: /
  Bin dir: /nix/store/xd59lwgxr1fv56pm26a1ycf4ppl469nk-ruby2.3.1-p0-debug_inspector-0.0.2/lib/ruby/gems/2.3.1/bin
  Gem home: /nix/store/xd59lwgxr1fv56pm26a1ycf4ppl469nk-ruby2.3.1-p0-debug_inspector-0.0.2/lib/ruby/gems/2.3.1
Building native extensions.  This could take a while...
WARNING:  You build with buildroot.
  Build root: /
  Bin dir: /nix/store/n17d37625005nnj56sj2jq1ng7py2pyf-ruby2.3.1-p0-delorean-2.1.0/lib/ruby/gems/2.3.1/bin
  Gem home: /nix/store/n17d37625005nnj56sj2jq1ng7py2pyf-ruby2.3.1-p0-delorean-2.1.0/lib/ruby/gems/2.3.1
/nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler.rb:407:in `rescue in eval_gemspec': There was a SyntaxError while loading delayed_job_active_record.gemspec:  (Bundler::GemspecError)
/nix/store/yl5ffy3xy60dpfgk7s9kzq9ipq7zgvr8-ruby2.3.1-p0-delayed_job_active_record-4.1.1/lib/ruby/gems/2.3.1/bundler/gems/delayed_job_active_record-36f434c4fd66/delayed_job_active_record.gemspec:5: invalid multibyte char (US-ASCII)
/nix/store/yl5ffy3xy60dpfgk7s9kzq9ipq7zgvr8-ruby2.3.1-p0-delayed_job_active_record-4.1.1/lib/ruby/gems/2.3.1/bundler/gems/delayed_job_active_record-36f434c4fd66/delayed_job_active_record.gemspec:5: invalid multibyte char (US-ASCII)
/nix/store/yl5ffy3xy60dpfgk7s9kzq9ipq7zgvr8-ruby2.3.1-p0-delayed_job_active_record-4.1.1/lib/ruby/gems/2.3.1/bundler/gems/delayed_job_active_record-36f434c4fd66/delayed_job_active_record.gemspec:5: syntax error, unexpected end-of-input, expecting keyword_end
...iginally authored by Tobias Lütke"
...                               ^
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler.rb:395:in `eval_gemspec'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler.rb:362:in `block in load_gemspec_uncached'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler/shared_helpers.rb:54:in `chdir'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler/shared_helpers.rb:54:in `block in chdir'
	from /nix/store/jsvd452vc0vr6fsr8wfng9nfq0hz3yzb-ruby-2.3.1-p0/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler/shared_helpers.rb:53:in `chdir'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler.rb:357:in `load_gemspec_uncached'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler.rb:347:in `load_gemspec'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler/source/git.rb:235:in `block in serialize_gemspecs_in'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler/source/git.rb:231:in `each'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler/source/git.rb:231:in `serialize_gemspecs_in'
	from /nix/store/2lxh7nhfr4vdzjwcbml6898hys7i6yj8-bundler-1.12.5/lib/ruby/gems/2.3.1/gems/bundler-1.12.5/lib/bundler/source/git.rb:156:in `specs'
	from /nix/store/8v4kc8hggwnll2npc7ki3xh5r9i9fajk-nix-bundle-install.rb:93:in `<main>'
Successfully installed delorean-2.1.0




-- 
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
 _______________________________________ 
/ Happiness is just an illusion, filled \
\ with sadness and confusion.           /
 --------------------------------------- 
-------------- 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/20160904/a80a26ef/attachment-0001.sig>


More information about the nix-dev mailing list