Comments (5)
Thank you.
Later I'll test your recommendations for server based on NixOS (now it's still work on Gentoo)
But now I found temporary solution to use rvm on notebooks with NixOS for study NixOS, rails and haskell.
It's enough:
pkgs:
git
gcc
bash
curl
openssl
sqlite
patch
readline
zlib
libyaml
#iconv
libxml2
libxslt
libtool
bison
v8
nodejs
curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm pkg install zlib
rvm pkg install readline
rvm pkg install openssl
rvm install 1.9.3
// : q
rvm use 1.9.3 --default
rvm use 1.9.3@rails3 --create
rvm use 1.9.3@rails3 --default
gem install rails
gem install sqlite3-ruby -- --with-sqlite3-dir=/nix/store/sqlite // replace to actual path in store
gem install libv8
cd to_your_app
bundle install
from nixpkgs.
We have a few gems (including rails) packaged through nixpkgs. nix-env -i ruby-rails-3.2.6 should work (default ruby is 1.9)
from nixpkgs.
Your receipt "nix-env -i ruby-rails-3.2.6" install successful but don't work due to rails belongs to rubygems instead gem from ruby-1.9 and failed find rack.
[root@bd:~]# rails -v
/nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/dependency.rb:247:in to_specs': Could not find rack (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.7.3, json-1.5.4, minitest-2.5.1, rack-ssl-1.3.2, railties-3.2.6, rake-0.9.2.2, rdoc-3.12, rdoc-3.9.4] (Gem::LoadError) from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:772:in
block in activate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:in each' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:in
activate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:745:in activate' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:775:in
block in activate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:in each' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:761:in
activate_dependencies'
from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems/specification.rb:745:in activate' from /nix/store/vyqv3ffri4fbwwd173a4xj9fj3qmsq0b-rubygems-1.8.17/lib/rubygems.rb:1211:in
gem'
from /nix/store/0iazqkijlf3cc095lflwqvdlmg0mc72a-ruby-railties-3.2.6/bin/.rails-wrapped:18:in `
from nixpkgs.
Oh, sorry, you'll also need to add /.nix-profile/lib/ruby/gems/1.9 to your GEM_PATH, and you might also need to have RUBYLIB=/.nix-profile/lib and RUBYOPT=rubygems
from nixpkgs.
@perestoronin thank you. It work for me, but also requires which
and pkgconfig
packages for Nix system and libyaml
& ncurses
for rvm pkg
. And I didn't add openssl
, readline
and zlib
to Nix packages.
UPD: but still not able to install gem nokogiri
...
from nixpkgs.
Related Issues (20)
- Update request: cloudflared 2024.2.1 → 2024.3.0
- Package request: stardict dictionaries
- steamwebhelper crashloops due to reading /run/current-system/sw/lib/libbeidpkcs11.so from ~/.pki/nssdb/pkcs11.txt on NixOS 24.05.20240323.44d0940 (Uakari) x86_64 HOT 38
- rustup error : rustc : “cannot execute: required file not found”? HOT 2
- Fluidsynth MIDI port not detected in Bottles / Heroic / possibly other launchers HOT 5
- error: The option `services.nextcloud.phpOptions' is used but not defined. HOT 1
- Build failure: tribler
- Gedit is missing the pycairo dependency
- paperless-ngx is broken with uvicorn >0.25 HOT 3
- Build failure: super-slicer HOT 2
- package set for standalone manpages HOT 2
- Package request: nautilus-admin
- Is not possible to remove / disable Modem Manager HOT 4
- Build failure: ytmdesktop HOT 5
- Package request: Lorien HOT 1
- Build failure: space-cadet-pinball 2.0.1 HOT 1
- Build failure: srtp/libsrtp HOT 1
- xapian tests fail HOT 2
- Unbound variable errors in `genericBuild`
- Update request: podman-tui 0.18.0 → 1.0.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixpkgs.