lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ruby docs: improve the example

- missing cd command
- invoke bundler through nix-shell, so it doesn't need to be on $PATH
Note: running bundix through nix-shell won't work ATM, as the shell sets
SSL_CERT_FILE=/no-cert-file.crt which prevents fetching throug https.
- use version from gemset to simplify updating
- don't break line in meta.description

+6 -5
+6 -5
doc/languages-frameworks/ruby.xml
··· 12 12 <screen> 13 13 <![CDATA[$ cd pkgs/servers/monitoring 14 14 $ mkdir sensu 15 + $ cd sensu 15 16 $ cat > Gemfile 16 17 source 'https://rubygems.org' 17 18 gem 'sensu' 18 - $ bundler package --path /tmp/vendor/bundle 19 + $ nix-shell -p bundler --command "bundler package --path /tmp/vendor/bundle" 19 20 $ $(nix-build '<nixpkgs>' -A bundix)/bin/bundix 20 21 $ cat > default.nix 21 22 { lib, bundlerEnv, ruby }: 22 23 23 - bundlerEnv { 24 - name = "sensu-0.17.1"; 24 + bundlerEnv rec { 25 + name = "sensu-${version}"; 25 26 27 + version = (import gemset).sensu.version; 26 28 inherit ruby; 27 29 gemfile = ./Gemfile; 28 30 lockfile = ./Gemfile.lock; 29 31 gemset = ./gemset.nix; 30 32 31 33 meta = with lib; { 32 - description = "A monitoring framework that aims to be simple, malleable, 33 - and scalable"; 34 + description = "A monitoring framework that aims to be simple, malleable, and scalable"; 34 35 homepage = http://sensuapp.org/; 35 36 license = with licenses; mit; 36 37 maintainers = with maintainers; [ theuni ];