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

21 lines
496 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2013-11-28 08:10:33 +01:00
name = "hdparm-9.43";
src = fetchurl {
url = "mirror://sourceforge/hdparm/${name}.tar.gz";
2013-11-28 08:10:33 +01:00
sha256 = "0amm2s67vzfgs0jv59jgj9pqkr6j9glj1chsj292263i94kr5gib";
};
preBuild = ''
makeFlagsArray=(sbindir=$out/sbin manprefix=$out)
'';
meta = {
description = "A tool to get/set ATA/SATA drive parameters under Linux";
homepage = http://sourceforge.net/projects/hdparm/;
platforms = stdenv.lib.platforms.linux;
};
}