mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
c6568adb00
most found with https://github.com/siraben/nix-lint
35 lines
868 B
Nix
35 lines
868 B
Nix
{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lvmsync";
|
|
version = (import ./gemset.nix).${pname}.version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = true;
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|