git.iko.soy/typeable/nixpkgs
on master help sign in
Not quite done - something fishy about the name attr
commitfc302bc07fd7a771751a6b94760730f1032e1f76 authorJudson <nyarly@gmail.com> dateSat 10 Jun 2017, 17:38 (9 years ago) parent78cb916
2 files changed+11−8
pkgs/development/ruby-modules/tool/default.nix+7−6 pkgs/development/tools/corundum/default.nix+4−2
pkgs/development/ruby-modules/tool/default.nix+7−6
@@ -1,4 +1,4 @@
1−{ stdenv }@defs:
1+{ lib, stdenv, callPackage, runCommand, ruby }@defs:
22
33{
44 name
@@ -8,25 +8,26 @@
88, exes ? []
99 # Scripts are ruby programs depend on gems in the Gemfile (e.g. scripts/rails)
1010, scripts ? []
11+, ruby ? defs.ruby
1112, gemfile ? null
1213, lockfile ? null
1314, gemset ? null
1415, preferLocalBuild ? false
1516, allowSubstitutes ? false
1617, meta ? {}
17−, postBuild
18+, postBuild ? ""
1819}@args:
1920
2021let
2122 basicEnv = (callPackage ../bundled-common {}) args;
2223
23− args = removeAttrs args_ [ "name" "postBuild" ]
24+ cmdArgs = removeAttrs args [ "name" "postBuild" ]
2425 // { inherit preferLocalBuild allowSubstitutes; }; # pass the defaults
2526in
26− runCommand name args ''
27− mkdir -p ${out}/bin; cd $out;
27+ runCommand name cmdArgs ''
28+ mkdir -p $out/bin; cd $out;
2829 ${(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} " +
3031 "--set BUNDLE_GEMFILE ${basicEnv.confFiles}/Gemfile "+
3132 "--set BUNDLE_PATH ${basicEnv}/${ruby.gemPath} "+
3233 "--set BUNDLE_FROZEN 1 "+
pkgs/development/tools/corundum/default.nix+4−2
@@ -1,9 +1,11 @@
1−{ rubyTool }:
1+{ lib, rubyTool }:
22
33rubyTool {
44 name = "corundum-0.6.2";
55 gemdir = ./.;
6− meta = {
6+ exes = [ "corundum-skel" ];
7+
8+ meta = with lib; {
79 description = "Tool and libraries for maintaining Ruby gems.";
810 homepage = http://sass-lang.com/;
911 license = licenses.mit;