nixpkgs/pkgs/os-specific/linux/hdparm/default.nix

25 lines
579 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2017-05-14 12:46:21 +02:00
name = "hdparm-9.52";
src = fetchurl {
url = "mirror://sourceforge/hdparm/${name}.tar.gz";
2017-05-14 12:46:21 +02:00
sha256 = "1djgxhfadd865dcrl6dp7dvjxpaisy7mk17mbdbglwg24ga9qhn3";
};
preBuild = ''
makeFlagsArray=(sbindir=$out/sbin manprefix=$out)
'';
meta = with stdenv.lib; {
description = "A tool to get/set ATA/SATA drive parameters under Linux";
homepage = http://sourceforge.net/projects/hdparm/;
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = [ maintainers.fuuzetsu ];
};
}