diff options
author | Judson <nyarly@gmail.com> | 2017-06-27 22:33:18 -0700 |
---|---|---|
committer | Judson <nyarly@gmail.com> | 2017-06-27 22:33:18 -0700 |
commit | e149f0234451e6ac714492076e5796546a2b035b (patch) | |
tree | 53e652e5c6502146ba61b48a1a99fd176b942acb /pkgs/development/ruby-modules/bundler-app | |
parent | 70e7e543c5493761cf065dc96ec8c8cbafe40aba (diff) | |
download | nixlib-e149f0234451e6ac714492076e5796546a2b035b.tar nixlib-e149f0234451e6ac714492076e5796546a2b035b.tar.gz nixlib-e149f0234451e6ac714492076e5796546a2b035b.tar.bz2 nixlib-e149f0234451e6ac714492076e5796546a2b035b.tar.lz nixlib-e149f0234451e6ac714492076e5796546a2b035b.tar.xz nixlib-e149f0234451e6ac714492076e5796546a2b035b.tar.zst nixlib-e149f0234451e6ac714492076e5796546a2b035b.zip |
Using pname and fetching versions
Diffstat (limited to 'pkgs/development/ruby-modules/bundler-app')
-rw-r--r-- | pkgs/development/ruby-modules/bundler-app/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/ruby-modules/bundler-app/default.nix b/pkgs/development/ruby-modules/bundler-app/default.nix index a5308b79ff3d..99d1dd64dc4f 100644 --- a/pkgs/development/ruby-modules/bundler-app/default.nix +++ b/pkgs/development/ruby-modules/bundler-app/default.nix @@ -7,10 +7,11 @@ # (shell)> bundix # Then use rubyTool in the default.nix: -# rubyTool { name = "gemifiedTool"; gemdir = ./.; exes = ["gemified-tool"]; } +# rubyTool { pname = "gemifiedTool"; gemdir = ./.; exes = ["gemified-tool"]; } # The 'exes' parameter ensures that a copy of e.g. rake doesn't polute the system. { - name + # use the name of the name in question; its version will be picked up from the gemset + pname # gemdir is the location of the Gemfile{,.lock} and gemset.nix; usually ./. , gemdir # Exes is the list of executables provided by the gems in the Gemfile @@ -30,10 +31,10 @@ let basicEnv = (callPackage ../bundled-common {}) args; - cmdArgs = removeAttrs args [ "name" "postBuild" ] + cmdArgs = removeAttrs args [ "pname" "postBuild" ] // { inherit preferLocalBuild allowSubstitutes; }; # pass the defaults in - runCommand name cmdArgs '' + runCommand basicEnv.name cmdArgs '' mkdir -p $out/bin; ${(lib.concatMapStrings (x: "ln -s '${basicEnv}/bin/${x}' $out/bin/${x};\n") exes)} ${(lib.concatMapStrings (s: "makeWrapper $out/bin/$(basename ${s}) $srcdir/${s} " + |