smartmontools: format, cleanup

This commit is contained in:
Sandro Jäckel 2021-08-11 13:14:29 +02:00 committed by Raphael Megzari
parent 4b1bccf57a
commit db805c9d36

View file

@ -1,6 +1,13 @@
{ lib, stdenv, fetchurl, autoreconfHook
, enableMail ? false, mailutils, inetutils
, IOKit, ApplicationServices }:
{ lib
, stdenv
, fetchurl
, autoreconfHook
, enableMail ? false
, mailutils
, inetutils
, IOKit
, ApplicationServices
}:
let
dbrev = "5171";
@ -11,7 +18,8 @@ let
name = "smartmontools-drivedb.h";
};
in stdenv.mkDerivation rec {
in
stdenv.mkDerivation rec {
pname = "smartmontools";
version = "7.2";
@ -24,10 +32,11 @@ in stdenv.mkDerivation rec {
# fixes darwin build
./smartmontools.patch
];
postPatch = "cp -v ${driverdb} drivedb.h";
postPatch = ''
cp -v ${driverdb} drivedb.h
'';
configureFlags = lib.optional enableMail
"--with-scriptpath=${lib.makeBinPath [ inetutils mailutils ]}";
configureFlags = lib.optional enableMail "--with-scriptpath=${lib.makeBinPath [ inetutils mailutils ]}";
nativeBuildInputs = [ autoreconfHook ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];