smartmontools: run nixfmt
This commit is contained in:
parent
4423e93451
commit
94bc565cec
@ -1,14 +1,15 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, autoreconfHook
|
||||
, enableMail ? false
|
||||
, gnused
|
||||
, hostname
|
||||
, mailutils
|
||||
, systemdLibs
|
||||
, IOKit
|
||||
, ApplicationServices
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
autoreconfHook,
|
||||
enableMail ? false,
|
||||
gnused,
|
||||
hostname,
|
||||
mailutils,
|
||||
systemdLibs,
|
||||
IOKit,
|
||||
ApplicationServices,
|
||||
}:
|
||||
|
||||
let
|
||||
@ -19,7 +20,13 @@ let
|
||||
sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI=";
|
||||
name = "smartmontools-drivedb.h";
|
||||
};
|
||||
scriptPath = lib.makeBinPath ([ gnused hostname ] ++ lib.optionals enableMail [ mailutils ]);
|
||||
scriptPath = lib.makeBinPath (
|
||||
[
|
||||
gnused
|
||||
hostname
|
||||
]
|
||||
++ lib.optionals enableMail [ mailutils ]
|
||||
);
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
@ -46,8 +53,12 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = lib.optionals stdenv.isLinux [ systemdLibs ]
|
||||
++ lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ];
|
||||
buildInputs =
|
||||
lib.optionals stdenv.isLinux [ systemdLibs ]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
IOKit
|
||||
ApplicationServices
|
||||
];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user