tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
smartmontools: use slightly newer drive DB
Peter Hoeg
8 years ago
497e04a6
9d2da6ab
+13
-13
1 changed file
expand all
collapse all
unified
split
pkgs
tools
system
smartmontools
default.nix
+13
-13
pkgs/tools/system/smartmontools/default.nix
···
1
1
-
{ stdenv, fetchurl, IOKit ? null , ApplicationServices ? null }:
1
1
+
{ stdenv, fetchurl, autoreconfHook
2
2
+
, IOKit ? null , ApplicationServices ? null }:
2
3
3
4
let
4
4
-
5
5
version = "6.5";
6
6
7
7
-
dbrev = "4391";
7
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
11
-
sha256 = "1da99m81wr0rjdhcz2xx0sbbrqxkxffja2kllg4srmhih7fps5p1";
11
11
+
sha256 = "1kdpgbl1az0xhqn7j613cx366n7amra8xz3391jpzzrd3vlga393";
12
12
name = "smartmontools-drivedb.h";
13
13
};
14
14
15
15
-
in
16
16
-
17
17
-
stdenv.mkDerivation rec {
15
15
+
in stdenv.mkDerivation rec {
18
16
name = "smartmontools-${version}";
19
17
20
18
src = fetchurl {
···
22
20
sha256 = "1g25r6sx85b5lay5n6sbnqv05qxzj6xsafsp93hnrg1h044bps49";
23
21
};
24
22
25
25
-
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [IOKit ApplicationServices];
26
26
-
27
23
patches = [ ./smartmontools.patch ];
28
24
postPatch = "cp -v ${driverdb} drivedb.h";
29
25
26
26
+
nativeBuildInputs = [ autoreconfHook ];
27
27
+
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [IOKit ApplicationServices];
28
28
+
enableParallelBuilding = true;
29
29
+
30
30
meta = with stdenv.lib; {
31
31
description = "Tools for monitoring the health of hard drives";
32
32
-
homepage = http://smartmontools.sourceforge.net/;
33
33
-
license = licenses.gpl2Plus;
34
34
-
platforms = with platforms; linux ++ darwin;
35
35
-
maintainers = [ maintainers.peti ];
32
32
+
homepage = http://smartmontools.sourceforge.net/;
33
33
+
license = licenses.gpl2Plus;
34
34
+
maintainers = with maintainers; [ peti ];
35
35
+
platforms = with platforms; linux ++ darwin;
36
36
};
37
37
}