Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
938 B
Nix
45 lines
938 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
smartmontools,
|
|
makeWrapper,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "snapraid";
|
|
version = "12.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "amadvance";
|
|
repo = "snapraid";
|
|
rev = "v${version}";
|
|
hash = "sha256-7guTRH9AZCsQYyWLpws19/sEe9GVFop21GYPzXCK6Fg=";
|
|
};
|
|
|
|
VERSION = version;
|
|
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
makeWrapper
|
|
];
|
|
|
|
# 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";
|
|
};
|
|
}
|