From f0bd33556f8fc22a3953f4385aee45cad2c458bf Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 20 Nov 2012 11:16:32 +0100 Subject: [PATCH] smartmontools: update drivedb file to trunk revision 3605 --- pkgs/tools/system/smartmontools/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 2f93f18ade59..89f8d3f5e77f 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -2,8 +2,9 @@ let driverdb = fetchurl { - url = "http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/branches/RELEASE_5_43_DRIVEDB/smartmontools/drivedb.h?revision=3605"; - sha256 = "1kibx5aal903hcpy6mjmfik6n9j142i3q3vvrcp1wmz10mfsqj8f"; + url = "http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/drivedb.h?revision=3685"; + sha256 = "11zczy03asfpj4wwip5bf3fpingdc7biz1cs3cykg4vnlxiwjxkx"; + name = "smartmontools-drivedb.h"; }; in stdenv.mkDerivation rec { @@ -14,7 +15,10 @@ stdenv.mkDerivation rec { sha256 = "9fe4ff2b7bcd00fde19db82bba168f5462ed6e857d3ef439495e304e3231d3a6"; }; - # patchPhase = "cp ${driverdb} drivedb.h"; + patchPhase = '' + cp ${driverdb} drivedb.h + sed -i -e 's@which which >/dev/null || exit 1@alias which="type -p"@' update-smart-drivedb.in + ''; meta = { description = "Tools for monitoring the health of hard drivers";