diff options
author | nonsequitur <cornelius.mika@gmail.com> | 2017-08-14 10:10:14 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-15 15:00:27 +0200 |
commit | 865765aece83690d673f2db2533300eb36fdb6b8 (patch) | |
tree | 3c8c68807f38a150ccaa7eb6dfa0b49d4a6bfcb1 /doc/languages-frameworks/ruby.xml | |
parent | 9ca7f38ce90b97f4e389c2976514409f25bc0e4f (diff) | |
download | nixpkgs-865765aece83690d673f2db2533300eb36fdb6b8.tar nixpkgs-865765aece83690d673f2db2533300eb36fdb6b8.tar.gz nixpkgs-865765aece83690d673f2db2533300eb36fdb6b8.tar.bz2 nixpkgs-865765aece83690d673f2db2533300eb36fdb6b8.tar.lz nixpkgs-865765aece83690d673f2db2533300eb36fdb6b8.tar.xz nixpkgs-865765aece83690d673f2db2533300eb36fdb6b8.tar.zst nixpkgs-865765aece83690d673f2db2533300eb36fdb6b8.zip |
ruby docs: improve example
1. Call `nix-build` with `--no-out-link` to avoid cluttering the source dir. 2. Re-add `patchShebangs`, since `buildCommand` doesn't imply a patch phase. (It was my fault to remove this in the first place, sorry!)
Diffstat (limited to 'doc/languages-frameworks/ruby.xml')
-rw-r--r-- | doc/languages-frameworks/ruby.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/languages-frameworks/ruby.xml b/doc/languages-frameworks/ruby.xml index 647a30481e3..6bb809192f8 100644 --- a/doc/languages-frameworks/ruby.xml +++ b/doc/languages-frameworks/ruby.xml @@ -20,7 +20,7 @@ $ cd sensu $ cat > Gemfile source 'https://rubygems.org' gem 'sensu' -$ $(nix-build '<nixpkgs>' -A bundix)/bin/bundix --magic +$ $(nix-build '<nixpkgs>' -A bundix --no-out-link)/bin/bundix --magic $ cat > default.nix { lib, bundlerEnv, ruby }: @@ -114,6 +114,7 @@ in stdenv.mkDerivation { script = ./my-script.rb; buildCommand = '' install -D -m755 $script $out/bin/my-script + patchShebangs $out/bin/my-script ''; }]]> </programlisting> |