4eb5bdd982
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/znapzend/versions. These checks were done: - built on NixOS - ran ‘/nix/store/i652pzxzq638dglzqh7p7afp9dilnfsy-znapzend-0.18.0/bin/znapzendzetup help’ got 0 exit code - ran ‘/nix/store/i652pzxzq638dglzqh7p7afp9dilnfsy-znapzend-0.18.0/bin/znapzendztatz -h’ got 0 exit code - ran ‘/nix/store/i652pzxzq638dglzqh7p7afp9dilnfsy-znapzend-0.18.0/bin/znapzendztatz --help’ got 0 exit code - found 0.18.0 with grep in /nix/store/i652pzxzq638dglzqh7p7afp9dilnfsy-znapzend-0.18.0 - directory tree listing: https://gist.github.com/5bc48206cf2caa33654bb891da1fdf99
71 lines
2.4 KiB
Nix
71 lines
2.4 KiB
Nix
{ stdenv, fetchFromGitHub, zfs, mbuffer, perl, perlPackages, wget, autoconf, automake }:
|
|
|
|
let
|
|
version = "0.18.0";
|
|
checksum = "1nlvw56viwgafma506slywfg54z6009jmzc9q6wljgr6mqfmmchd";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "znapzend-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oetiker";
|
|
repo = "znapzend";
|
|
rev = "v${version}";
|
|
sha256 = checksum;
|
|
};
|
|
|
|
buildInputs = [ perl perlPackages.TestHarness perlPackages.Mojolicious
|
|
perlPackages.TAPParserSourceHandlerpgTAP perlPackages.MojoIOLoopForkCall
|
|
perlPackages.IOPipely wget ];
|
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
|
|
preConfigure = ''
|
|
sed -i 's/^SUBDIRS =.*$/SUBDIRS = lib/' Makefile.am
|
|
|
|
grep -v thirdparty/Makefile configure.ac > configure.ac.tmp
|
|
mv configure.ac.tmp configure.ac
|
|
|
|
autoconf
|
|
'';
|
|
|
|
preBuild = ''
|
|
aclocal
|
|
automake
|
|
'';
|
|
|
|
postInstall = ''
|
|
substituteInPlace $out/bin/znapzend --replace "${perl}/bin/perl" \
|
|
"${perl}/bin/perl \
|
|
-I${perlPackages.TestHarness}/${perl.libPrefix} \
|
|
-I${perlPackages.Mojolicious}/${perl.libPrefix} \
|
|
-I${perlPackages.TAPParserSourceHandlerpgTAP}/${perl.libPrefix} \
|
|
-I${perlPackages.MojoIOLoopForkCall}/${perl.libPrefix} \
|
|
-I${perlPackages.IOPipely}/${perl.libPrefix} \
|
|
"
|
|
substituteInPlace $out/bin/znapzendzetup --replace "${perl}/bin/perl" \
|
|
"${perl}/bin/perl \
|
|
-I${perlPackages.TestHarness}/${perl.libPrefix} \
|
|
-I${perlPackages.Mojolicious}/${perl.libPrefix} \
|
|
-I${perlPackages.TAPParserSourceHandlerpgTAP}/${perl.libPrefix} \
|
|
-I${perlPackages.MojoIOLoopForkCall}/${perl.libPrefix} \
|
|
-I${perlPackages.IOPipely}/${perl.libPrefix} \
|
|
"
|
|
substituteInPlace $out/bin/znapzendztatz --replace "${perl}/bin/perl" \
|
|
"${perl}/bin/perl \
|
|
-I${perlPackages.TestHarness}/${perl.libPrefix} \
|
|
-I${perlPackages.Mojolicious}/${perl.libPrefix} \
|
|
-I${perlPackages.TAPParserSourceHandlerpgTAP}/${perl.libPrefix} \
|
|
-I${perlPackages.MojoIOLoopForkCall}/${perl.libPrefix} \
|
|
-I${perlPackages.IOPipely}/${perl.libPrefix} \
|
|
"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "High performance open source ZFS backup with mbuffer and ssh support";
|
|
homepage = http://www.znapzend.org;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ otwieracz ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|