nixpkgs/pkgs/tools/backup/lvmsync/default.nix
c0bw3b 9367367dfd Treewide: fix URL permanent redirects
Permanent redirects on homepages and/or source URLs
as reported by Repology
2019-11-16 01:41:23 +01:00

40 lines
890 B
Nix

{ stdenv, bundlerEnv, ruby, bundlerUpdateScript, 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
'';
passthru.updateScript = bundlerUpdateScript "lvmsync";
meta = with stdenv.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 ];
};
}