1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "hdparm";
5 version = "9.65";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
9 sha256 = "sha256-0Ukp+RDQYJMucX6TgkJdR8LnFEI1pTcT1VqU995TWks=";
10 };
11
12 preBuild = ''
13 makeFlagsArray=(sbindir=$out/sbin manprefix=$out)
14 '';
15
16 meta = with lib; {
17 description = "A tool to get/set ATA/SATA drive parameters under Linux";
18 homepage = "https://sourceforge.net/projects/hdparm/";
19 platforms = platforms.linux;
20 license = licenses.bsd2;
21 maintainers = [ ];
22 };
23
24}