7bc014aa9c
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
24 lines
583 B
Nix
24 lines
583 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hdparm";
|
|
version = "9.65";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
|
|
sha256 = "sha256-0Ukp+RDQYJMucX6TgkJdR8LnFEI1pTcT1VqU995TWks=";
|
|
};
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=(sbindir=$out/sbin manprefix=$out)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 = [ ];
|
|
};
|
|
|
|
}
|