mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
smartmontools: format, cleanup
This commit is contained in:
parent
4b1bccf57a
commit
db805c9d36
1 changed files with 21 additions and 12 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue