2019-07-22 13:02:47 +01:00
|
|
|
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }:
|
2017-12-31 09:12:41 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
pname = "lvmsync";
|
2019-08-13 22:52:01 +01:00
|
|
|
version = (import ./gemset.nix).${pname}.version;
|
2017-12-31 09:12:41 +00:00
|
|
|
|
|
|
|
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 = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/lvmsync $out/bin/lvmsync
|
|
|
|
'';
|
|
|
|
|
2019-07-22 13:02:47 +01:00
|
|
|
passthru.updateScript = bundlerUpdateScript "lvmsync";
|
|
|
|
|
2017-12-31 09:12:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Optimised synchronisation of LVM snapshots over a network";
|
2019-11-16 00:41:23 +00:00
|
|
|
homepage = https://theshed.hezmatt.org/lvmsync/;
|
2017-12-31 09:12:41 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
2019-07-22 13:02:47 +01:00
|
|
|
maintainers = with maintainers; [ jluttine nicknovitski ];
|
2017-12-31 09:12:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|