792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
24 lines
583 B
Nix
24 lines
583 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hdparm";
|
|
version = "9.63";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
|
|
sha256 = "sha256-cHhd6uu6WHeonBI1aLQd7pkNpV/FFCDxP2CaEHKJlpE=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
|
|
}
|