|
1 |
| -{ stdenv, fetchurl, IOKit ? null , ApplicationServices ? null }: |
| 1 | +{ stdenv, fetchurl, autoreconfHook |
| 2 | +, IOKit ? null , ApplicationServices ? null }: |
2 | 3 |
|
3 | 4 | let
|
4 |
| - |
5 | 5 | version = "6.5";
|
6 | 6 |
|
7 |
| - dbrev = "4391"; |
| 7 | + dbrev = "4394"; |
8 | 8 | drivedbBranch = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}_DRIVEDB";
|
9 | 9 | driverdb = fetchurl {
|
10 | 10 | url = "http://sourceforge.net/p/smartmontools/code/${dbrev}/tree/branches/${drivedbBranch}/smartmontools/drivedb.h?format=raw";
|
11 |
| - sha256 = "1da99m81wr0rjdhcz2xx0sbbrqxkxffja2kllg4srmhih7fps5p1"; |
| 11 | + sha256 = "1kdpgbl1az0xhqn7j613cx366n7amra8xz3391jpzzrd3vlga393"; |
12 | 12 | name = "smartmontools-drivedb.h";
|
13 | 13 | };
|
14 | 14 |
|
15 |
| -in |
16 |
| - |
17 |
| -stdenv.mkDerivation rec { |
| 15 | +in stdenv.mkDerivation rec { |
18 | 16 | name = "smartmontools-${version}";
|
19 | 17 |
|
20 | 18 | src = fetchurl {
|
21 | 19 | url = "mirror://sourceforge/smartmontools/${name}.tar.gz";
|
22 | 20 | sha256 = "1g25r6sx85b5lay5n6sbnqv05qxzj6xsafsp93hnrg1h044bps49";
|
23 | 21 | };
|
24 | 22 |
|
25 |
| - buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [IOKit ApplicationServices]; |
26 |
| - |
27 | 23 | patches = [ ./smartmontools.patch ];
|
28 | 24 | postPatch = "cp -v ${driverdb} drivedb.h";
|
29 | 25 |
|
| 26 | + nativeBuildInputs = [ autoreconfHook ]; |
| 27 | + buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [IOKit ApplicationServices]; |
| 28 | + enableParallelBuilding = true; |
| 29 | + |
30 | 30 | meta = with stdenv.lib; {
|
31 | 31 | description = "Tools for monitoring the health of hard drives";
|
32 |
| - homepage = http://smartmontools.sourceforge.net/; |
33 |
| - license = licenses.gpl2Plus; |
34 |
| - platforms = with platforms; linux ++ darwin; |
35 |
| - maintainers = [ maintainers.peti ]; |
| 32 | + homepage = http://smartmontools.sourceforge.net/; |
| 33 | + license = licenses.gpl2Plus; |
| 34 | + maintainers = with maintainers; [ peti ]; |
| 35 | + platforms = with platforms; linux ++ darwin; |
36 | 36 | };
|
37 | 37 | }
|
0 commit comments