diff options
author | Robin Gloster <mail@glob.in> | 2019-11-10 02:13:39 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-12-31 01:23:19 +0100 |
commit | 006242fd5ac679889ff3f9bc074ffad95a43041f (patch) | |
tree | 478bcb5f952dc4f87a00f1a3e4fa345481fc8c52 /pkgs/tools/backup/lvmsync | |
parent | 81ffabdf4f228732607796fc3c58148c8d62affe (diff) |
treewide: fix types for mkDerivation params
Diffstat (limited to 'pkgs/tools/backup/lvmsync')
-rw-r--r-- | pkgs/tools/backup/lvmsync/default.nix | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/pkgs/tools/backup/lvmsync/default.nix b/pkgs/tools/backup/lvmsync/default.nix index 8c23d804d0b80..a52c6bf1ba7c3 100644 --- a/pkgs/tools/backup/lvmsync/default.nix +++ b/pkgs/tools/backup/lvmsync/default.nix @@ -1,27 +1,22 @@ { stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }: -let - +stdenv.mkDerivation rec { pname = "lvmsync"; version = (import ./gemset.nix).${pname}.version; -in stdenv.mkDerivation rec { - - name = "${pname}-${version}"; - - env = bundlerEnv { - name = "${pname}-${version}-gems"; - ruby = ruby; - gemfile = ./Gemfile; - lockfile = ./Gemfile.lock; - gemset = ./gemset.nix; - }; - buildInputs = [ makeWrapper ]; phases = ["installPhase"]; - installPhase = '' + installPhase = let + env = bundlerEnv { + name = "${pname}-${version}-gems"; + ruby = ruby; + gemfile = ./Gemfile; + lockfile = ./Gemfile.lock; + gemset = ./gemset.nix; + }; + in '' mkdir -p $out/bin makeWrapper ${env}/bin/lvmsync $out/bin/lvmsync ''; |