blob: e964f944d3a88aeee2f1be06e0f28bca1919e12b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
smartmontools,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "snapraid";
version = "12.3";
src = fetchFromGitHub {
owner = "amadvance";
repo = "snapraid";
rev = "v${version}";
hash = "sha256-pkLooA3JZV/rPlE5+JeJN1QW2xAdNu7c/iFFtT4M4vc=";
};
VERSION = version;
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64);
nativeBuildInputs = [
autoreconfHook
makeWrapper
];
buildInputs = [ ];
# SMART is only supported on Linux and requires the smartmontools package
postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
wrapProgram $out/bin/snapraid \
--prefix PATH : ${lib.makeBinPath [ smartmontools ]}
'';
meta = {
homepage = "http://www.snapraid.it/";
description = "Backup program for disk arrays";
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.makefu ];
platforms = lib.platforms.unix;
mainProgram = "snapraid";
};
}
|