2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, zfs }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "easysnap";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2022-06-03";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sjau";
|
|
|
|
repo = "easysnap";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "5f961442315a6f7eb8ca5b705bd52fe1e6d7dc42";
|
|
|
|
sha256 = "sha256-jiKdpwuw0Oil0sxUr/3KJ6Nbfxh8DvBei0yy0nRM+Vs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2023-07-15 17:15:38 +00:00
|
|
|
cp easysnap* $out/bin/
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
substituteInPlace $i \
|
|
|
|
--replace zfs ${zfs}/bin/zfs
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/sjau/easysnap";
|
|
|
|
description = "Customizable ZFS Snapshotting tool with zfs send/recv pulling";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ sjau ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|