2018-10-28 14:13:00 +00:00
|
|
|
{stdenv, fetchFromGitHub, zfs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "easysnap";
|
2019-02-17 12:08:51 +00:00
|
|
|
version = "unstable-2019-02-17";
|
2018-10-28 14:13:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sjau";
|
|
|
|
repo = "easysnap";
|
2019-02-17 12:08:51 +00:00
|
|
|
rev = "9ef5d1ff51ccf9939a88b7b32b4959d27cf61ecc";
|
|
|
|
sha256 = "0m0217ni909nham15w5vxg8y7cw2zwjibnhvgnpxxsap8zkhv1m4";
|
2018-10-28 14:13:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -n easysnap* $out/bin/
|
|
|
|
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
substituteInPlace $i \
|
|
|
|
--replace zfs ${zfs}/bin/zfs
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/sjau/easysnap;
|
|
|
|
description = "Customizable ZFS Snapshotting tool with zfs send/recv pulling";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ sjau ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|