mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
38 lines
799 B
Nix
38 lines
799 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
|
||
|
}
|