summary refs log tree commit diff
path: root/pkgs/development/tools/misc/watson-ruby/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-11-10 02:13:39 +0100
committerJan Tojnar <jtojnar@gmail.com>2019-12-31 01:23:19 +0100
commit006242fd5ac679889ff3f9bc074ffad95a43041f (patch)
tree478bcb5f952dc4f87a00f1a3e4fa345481fc8c52 /pkgs/development/tools/misc/watson-ruby/default.nix
parent81ffabdf4f228732607796fc3c58148c8d62affe (diff)
downloadnixpkgs-006242fd5ac679889ff3f9bc074ffad95a43041f.tar
nixpkgs-006242fd5ac679889ff3f9bc074ffad95a43041f.tar.gz
nixpkgs-006242fd5ac679889ff3f9bc074ffad95a43041f.tar.bz2
nixpkgs-006242fd5ac679889ff3f9bc074ffad95a43041f.tar.lz
nixpkgs-006242fd5ac679889ff3f9bc074ffad95a43041f.tar.xz
nixpkgs-006242fd5ac679889ff3f9bc074ffad95a43041f.tar.zst
nixpkgs-006242fd5ac679889ff3f9bc074ffad95a43041f.zip
treewide: fix types for mkDerivation params
Diffstat (limited to 'pkgs/development/tools/misc/watson-ruby/default.nix')
-rw-r--r--pkgs/development/tools/misc/watson-ruby/default.nix17
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/development/tools/misc/watson-ruby/default.nix b/pkgs/development/tools/misc/watson-ruby/default.nix
index e1726efc40c..64e04455abe 100644
--- a/pkgs/development/tools/misc/watson-ruby/default.nix
+++ b/pkgs/development/tools/misc/watson-ruby/default.nix
@@ -1,20 +1,19 @@
 { stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
 
-
 stdenv.mkDerivation rec {
   pname = "watson-ruby";
   version = (import ./gemset.nix).watson-ruby.version;
 
-  env = bundlerEnv {
-    name = "watson-ruby-gems-${version}";
-    inherit ruby;
-    # expects Gemfile, Gemfile.lock and gemset.nix in the same directory
-    gemdir = ./.;
-  };
-
   phases = [ "installPhase" ];
 
-  installPhase = ''
+  installPhase = let
+    env = bundlerEnv {
+      name = "watson-ruby-gems-${version}";
+      inherit ruby;
+      # expects Gemfile, Gemfile.lock and gemset.nix in the same directory
+      gemdir = ./.;
+    };
+  in ''
     mkdir -p $out/bin
     ln -s ${env}/bin/watson $out/bin/watson
   '';