git.iko.soy/typeable/nixpkgs
on master help sign in
Not quite done - something fishy about the name attr
fc302bcJudson
pkgs/development/ruby-modules/tool/default.nix+7−6
@@ -1,4 +1,4 @@
1−{ stdenv }@defs:
1+{ lib, stdenv, callPackage, runCommand, ruby }@defs:
2
2
3{
3{
4 name
4 name
@@ -8,25 +8,26 @@
8, exes ? []
8, exes ? []
9 # Scripts are ruby programs depend on gems in the Gemfile (e.g. scripts/rails)
9 # Scripts are ruby programs depend on gems in the Gemfile (e.g. scripts/rails)
10, scripts ? []
10, scripts ? []
11+, ruby ? defs.ruby
11, gemfile ? null
12, gemfile ? null
12, lockfile ? null
13, lockfile ? null
13, gemset ? null
14, gemset ? null
14, preferLocalBuild ? false
15, preferLocalBuild ? false
15, allowSubstitutes ? false
16, allowSubstitutes ? false
16, meta ? {}
17, meta ? {}
17−, postBuild
18+, postBuild ? ""
18}@args:
19}@args:
19
20
20let
21let
21 basicEnv = (callPackage ../bundled-common {}) args;
22 basicEnv = (callPackage ../bundled-common {}) args;
22
23
23− args = removeAttrs args_ [ "name" "postBuild" ]
24+ cmdArgs = removeAttrs args [ "name" "postBuild" ]
24 // { inherit preferLocalBuild allowSubstitutes; }; # pass the defaults
25 // { inherit preferLocalBuild allowSubstitutes; }; # pass the defaults
25in
26in
26− runCommand name args ''
27+ runCommand name cmdArgs ''
27− mkdir -p ${out}/bin; cd $out;
28+ mkdir -p $out/bin; cd $out;
28 ${(lib.concatMapStrings (x: "ln -s '${basicEnv}/bin/${x}' '${x}';\n") exes)}
29 ${(lib.concatMapStrings (x: "ln -s '${basicEnv}/bin/${x}' '${x}';\n") exes)}
29− ${(lib.concatMapStrings (s: "makeWrapper ${out}/bin/$(basename ${s}) $srcdir/${s} " +
30+ ${(lib.concatMapStrings (s: "makeWrapper $out/bin/$(basename ${s}) $srcdir/${s} " +
30 "--set BUNDLE_GEMFILE ${basicEnv.confFiles}/Gemfile "+
31 "--set BUNDLE_GEMFILE ${basicEnv.confFiles}/Gemfile "+
31 "--set BUNDLE_PATH ${basicEnv}/${ruby.gemPath} "+
32 "--set BUNDLE_PATH ${basicEnv}/${ruby.gemPath} "+
32 "--set BUNDLE_FROZEN 1 "+
33 "--set BUNDLE_FROZEN 1 "+
pkgs/development/tools/corundum/default.nix+4−2
@@ -1,9 +1,11 @@
1−{ rubyTool }:
1+{ lib, rubyTool }:
2
2
3rubyTool {
3rubyTool {
4 name = "corundum-0.6.2";
4 name = "corundum-0.6.2";
5 gemdir = ./.;
5 gemdir = ./.;
6+ exes = [ "corundum-skel" ];
7+
6− meta = {
8+ meta = with lib; {
7 description = "Tool and libraries for maintaining Ruby gems.";
9 description = "Tool and libraries for maintaining Ruby gems.";
8 homepage = http://sass-lang.com/;
10 homepage = http://sass-lang.com/;
9 license = licenses.mit;
11 license = licenses.mit;