depot/third_party/nixpkgs/pkgs/os-specific/linux/hdparm/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

24 lines
583 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "hdparm";
version = "9.62";
src = fetchurl {
url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
sha256 = "sha256-LA+ddc2+2pKKJaEozT0LcSBEXsCRDAsp1MEDjtG+d38=";
};
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 = [ ];
};
}