From 8f8c7ecc7fa0d6bdd7ced5c74e588b0ddd53f6e3 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 1 Jan 2019 12:02:47 -0600 Subject: [PATCH] smartmontools: 6.6 -> 7.0 (#53115) https://listi.jpberlin.de/pipermail/smartmontools-announce/2018-December/000001.html --- pkgs/tools/system/smartmontools/default.nix | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index e8fbe90acde..6c26855b956 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -2,13 +2,13 @@ , IOKit ? null , ApplicationServices ? null }: let - version = "6.6"; + version = "7.0"; - dbrev = "4852"; + dbrev = "4883"; drivedbBranch = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}_DRIVEDB"; driverdb = fetchurl { url = "https://sourceforge.net/p/smartmontools/code/${dbrev}/tree/branches/${drivedbBranch}/smartmontools/drivedb.h?format=raw"; - sha256 = "15gbwiw38yzl3cdvys6r7wknv5zdycm7zbswa2p9vzxlc8s63rlr"; + sha256 = "07x3haz65jyhj579h4z17v6jkw6bbyid34442gl4qddmgv2qzvwx"; name = "smartmontools-drivedb.h"; }; @@ -17,17 +17,10 @@ in stdenv.mkDerivation rec { src = fetchurl { url = "mirror://sourceforge/smartmontools/${name}.tar.gz"; - sha256 = "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"; + sha256 = "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5"; }; - patches = [ ./smartmontools.patch ] - # https://www.smartmontools.org/changeset/4603 - ++ stdenv.lib.optional stdenv.hostPlatform.isMusl (fetchpatch { - name = "musl-canonicalize_file_name.patch"; - url = "https://www.smartmontools.org/changeset/4603?format=diff&new=4603"; - sha256 = "06s9pcd95snjkrbfrsjby2lln3lnwjd21bgabmvr4p7fx19b75zp"; - stripLen = 2; - }); + patches = [ ./smartmontools.patch ]; postPatch = "cp -v ${driverdb} drivedb.h"; nativeBuildInputs = [ autoreconfHook ];