hdparm: general improvements

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-12-22 14:16:01 +01:00
parent 95045fba97
commit 941f937481
No known key found for this signature in database
GPG key ID: E13DFD4B47127951

View file

@ -1,17 +1,18 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "hdparm";
version = "9.65";
src = fetchurl {
url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
url = "mirror://sourceforge/hdparm/hdparm-${finalAttrs.version}.tar.gz";
sha256 = "sha256-0Ukp+RDQYJMucX6TgkJdR8LnFEI1pTcT1VqU995TWks=";
};
preBuild = ''
makeFlagsArray=(sbindir=$out/sbin manprefix=$out)
'';
makeFlags = [
"sbindir=${placeholder "out"}/sbin"
"manprefix=${placeholder "out"}"
];
meta = with lib; {
description = "A tool to get/set ATA/SATA drive parameters under Linux";
@ -21,5 +22,4 @@ stdenv.mkDerivation rec {
mainProgram = "hdparm";
maintainers = [ ];
};
}
})