2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-10-27 00:29:36 +00:00
|
|
|
pname = "hdparm";
|
2022-09-11 15:47:08 +00:00
|
|
|
version = "9.65";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
url = "mirror://sourceforge/hdparm/hdparm-${finalAttrs.version}.tar.gz";
|
2022-09-11 15:47:08 +00:00
|
|
|
sha256 = "sha256-0Ukp+RDQYJMucX6TgkJdR8LnFEI1pTcT1VqU995TWks=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
makeFlags = [
|
|
|
|
"sbindir=${placeholder "out"}/sbin"
|
|
|
|
"manprefix=${placeholder "out"}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "hdparm";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ ];
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|