Merge pull request #276052 from Scrumplex/pkgs/hdparm/improvements
hdparm: general improvements
This commit is contained in:
commit
a126cb7d59
1 changed files with 7 additions and 7 deletions
|
@ -1,17 +1,18 @@
|
||||||
{ lib, stdenv, fetchurl }:
|
{ lib, stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "hdparm";
|
pname = "hdparm";
|
||||||
version = "9.65";
|
version = "9.65";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
|
url = "mirror://sourceforge/hdparm/hdparm-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-0Ukp+RDQYJMucX6TgkJdR8LnFEI1pTcT1VqU995TWks=";
|
sha256 = "sha256-0Ukp+RDQYJMucX6TgkJdR8LnFEI1pTcT1VqU995TWks=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = ''
|
makeFlags = [
|
||||||
makeFlagsArray=(sbindir=$out/sbin manprefix=$out)
|
"sbindir=${placeholder "out"}/sbin"
|
||||||
'';
|
"manprefix=${placeholder "out"}"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A tool to get/set ATA/SATA drive parameters under Linux";
|
description = "A tool to get/set ATA/SATA drive parameters under Linux";
|
||||||
|
@ -21,5 +22,4 @@ stdenv.mkDerivation rec {
|
||||||
mainProgram = "hdparm";
|
mainProgram = "hdparm";
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
|
})
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue