forked from mirrors/nixpkgs
smartmontools: 6.6 -> 7.0 (#53115)
https://listi.jpberlin.de/pipermail/smartmontools-announce/2018-December/000001.html
This commit is contained in:
parent
711a74c65a
commit
8f8c7ecc7f
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue