depot/third_party/nixpkgs/pkgs/os-specific/linux/hdparm/default.nix
Default email c6ca5b8f13 Project import generated by Copybara.
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
2022-07-18 18:21:45 +02:00

24 lines
583 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "hdparm";
version = "9.64";
src = fetchurl {
url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz";
sha256 = "sha256-MVuVaVHD/qAnKH3iBDgVNCF8C9Dze0k1h3/i2wyrhZo=";
};
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 = [ ];
};
}