sanoid: Passthru sanoid tests

This commit is contained in:
Elis Hirwing 2021-07-26 10:06:06 +02:00
parent 764e4acee1
commit bf36e52f64
No known key found for this signature in database
GPG key ID: D57EFA625C9A925F

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper, zfs
{ lib, stdenv, fetchFromGitHub, nixosTests, makeWrapper, zfs
, perlPackages, procps, which, openssh, mbuffer, pv, lzop, gzip, pigz }:
with lib;
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = with perlPackages; [ perl ConfigIniFiles CaptureTiny ];
passthru.tests = nixosTests.sanoid;
installPhase = ''
runHook preInstall