Merge pull request #33238 from jluttine/add-lvmsync
lvmsync: init at 3.3.2
This commit is contained in:
commit
2b7003e1de
5 changed files with 96 additions and 0 deletions
2
pkgs/tools/backup/lvmsync/Gemfile
Normal file
2
pkgs/tools/backup/lvmsync/Gemfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
source 'https://rubygems.org/'
|
||||
gem 'lvmsync'
|
19
pkgs/tools/backup/lvmsync/Gemfile.lock
Normal file
19
pkgs/tools/backup/lvmsync/Gemfile.lock
Normal file
|
@ -0,0 +1,19 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
git-version-bump (0.15.1)
|
||||
lvmsync (3.3.2)
|
||||
git-version-bump (~> 0.10)
|
||||
treetop
|
||||
polyglot (0.3.5)
|
||||
treetop (1.6.9)
|
||||
polyglot (~> 0.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
lvmsync
|
||||
|
||||
BUNDLED WITH
|
||||
1.14.6
|
37
pkgs/tools/backup/lvmsync/default.nix
Normal file
37
pkgs/tools/backup/lvmsync/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ stdenv, bundlerEnv, ruby, makeWrapper }:
|
||||
|
||||
let
|
||||
|
||||
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 = ''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${env}/bin/lvmsync $out/bin/lvmsync
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Optimised synchronisation of LVM snapshots over a network";
|
||||
homepage = http://theshed.hezmatt.org/lvmsync/;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ jluttine ];
|
||||
};
|
||||
|
||||
}
|
36
pkgs/tools/backup/lvmsync/gemset.nix
Normal file
36
pkgs/tools/backup/lvmsync/gemset.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
git-version-bump = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0xcj20gmbpqn2gcpid4pxpnimfdg2ip9jnl1572naz0magcrwl2s";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.15.1";
|
||||
};
|
||||
lvmsync = {
|
||||
dependencies = ["git-version-bump" "treetop"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "02mdrvfibvab4p4yrdzxvndhy8drss3ri7izybcwgpbyc7isk8mv";
|
||||
type = "gem";
|
||||
};
|
||||
version = "3.3.2";
|
||||
};
|
||||
polyglot = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.3.5";
|
||||
};
|
||||
treetop = {
|
||||
dependencies = ["polyglot"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0sdkd1v2h8dhj9ncsnpywmqv7w1mdwsyc5jwyxlxwriacv8qz8bd";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.6.9";
|
||||
};
|
||||
}
|
|
@ -3236,6 +3236,8 @@ with pkgs;
|
|||
|
||||
ltwheelconf = callPackage ../applications/misc/ltwheelconf { };
|
||||
|
||||
lvmsync = callPackage ../tools/backup/lvmsync { };
|
||||
|
||||
kippo = callPackage ../servers/kippo { };
|
||||
|
||||
kzipmix = callPackage_i686 ../tools/compression/kzipmix { };
|
||||
|
|
Loading…
Reference in a new issue