depot/third_party/nixpkgs/pkgs/tools/backup/lvmsync/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

34 lines
870 B
Nix

{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }:
stdenv.mkDerivation rec {
pname = "lvmsync";
version = (import ./gemset.nix).${pname}.version;
buildInputs = [ makeWrapper ];
phases = ["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
'';
passthru.updateScript = bundlerUpdateScript "lvmsync";
meta = with lib; {
description = "Optimised synchronisation of LVM snapshots over a network";
homepage = "https://theshed.hezmatt.org/lvmsync/";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ jluttine nicknovitski ];
};
}