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