2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-10-27 00:29:36 +00:00
|
|
|
pname = "hdparm";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "9.62";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-10-27 00:29:36 +00:00
|
|
|
url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-LA+ddc2+2pKKJaEozT0LcSBEXsCRDAsp1MEDjtG+d38=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(sbindir=$out/sbin manprefix=$out)
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A tool to get/set ATA/SATA drive parameters under Linux";
|
|
|
|
homepage = "https://sourceforge.net/projects/hdparm/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|