sanoid: format

This commit is contained in:
Sandro Jäckel 2021-08-09 11:56:58 +02:00
parent 047fea5392
commit 19be7f9c3e
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,8 +1,6 @@
{ lib, stdenv, fetchFromGitHub, nixosTests, makeWrapper, zfs
, perlPackages, procps, which, openssh, mbuffer, pv, lzop, gzip, pigz }:
with lib;
stdenv.mkDerivation rec {
pname = "sanoid";
version = "2.1.0";
@ -33,22 +31,22 @@ stdenv.mkDerivation rec {
# incompatibilities with the ZFS kernel module.
wrapProgram "$out/bin/sanoid" \
--prefix PERL5LIB : "$PERL5LIB" \
--prefix PATH : "${makeBinPath [ procps "/run/booted-system/sw" zfs ]}"
--prefix PATH : "${lib.makeBinPath [ procps "/run/booted-system/sw" zfs ]}"
install -m755 syncoid "$out/bin/syncoid"
wrapProgram "$out/bin/syncoid" \
--prefix PERL5LIB : "$PERL5LIB" \
--prefix PATH : "${makeBinPath [ openssh procps which pv mbuffer lzop gzip pigz "/run/booted-system/sw" zfs ]}"
--prefix PATH : "${lib.makeBinPath [ openssh procps which pv mbuffer lzop gzip pigz "/run/booted-system/sw" zfs ]}"
install -m755 findoid "$out/bin/findoid"
wrapProgram "$out/bin/findoid" \
--prefix PERL5LIB : "$PERL5LIB" \
--prefix PATH : "${makeBinPath [ "/run/booted-system/sw" zfs ]}"
--prefix PATH : "${lib.makeBinPath [ "/run/booted-system/sw" zfs ]}"
runHook postInstall
'';
meta = {
meta = with lib; {
description = "A policy-driven snapshot management tool for ZFS filesystems";
homepage = "https://github.com/jimsalterjrs/sanoid";
license = licenses.gpl3Plus;