treewide: fix types for mkDerivation params

This commit is contained in:
Robin Gloster
2019-11-10 02:13:39 +01:00
committed by Jan Tojnar
parent 81ffabdf4f
commit 006242fd5a
18 changed files with 90 additions and 98 deletions

View File

@@ -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
'';