diff options
author | Nick Cao <nickcao@nichi.co> | 2023-12-22 10:08:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 10:08:31 -0500 |
commit | a126cb7d59b5eb11af49c83edd6e080c044849d9 (patch) | |
tree | 4c11406b4a22e470d692a205dfe5514daf0bc613 /pkgs | |
parent | dd2a90372718bb9ee9d412c156641643c79ce521 (diff) | |
parent | 941f937481dcd8c218d95d631b9ef7d845760044 (diff) |
Merge pull request #276052 from Scrumplex/pkgs/hdparm/improvements
hdparm: general improvements
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/os-specific/linux/hdparm/default.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/os-specific/linux/hdparm/default.nix b/pkgs/os-specific/linux/hdparm/default.nix index eacce23bc4242..3e23e3a7da7b0 100644 --- a/pkgs/os-specific/linux/hdparm/default.nix +++ b/pkgs/os-specific/linux/hdparm/default.nix @@ -1,17 +1,18 @@ { lib, stdenv, fetchurl }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "hdparm"; version = "9.65"; src = fetchurl { - url = "mirror://sourceforge/hdparm/hdparm-${version}.tar.gz"; + url = "mirror://sourceforge/hdparm/hdparm-${finalAttrs.version}.tar.gz"; sha256 = "sha256-0Ukp+RDQYJMucX6TgkJdR8LnFEI1pTcT1VqU995TWks="; }; - preBuild = '' - makeFlagsArray=(sbindir=$out/sbin manprefix=$out) - ''; + makeFlags = [ + "sbindir=${placeholder "out"}/sbin" + "manprefix=${placeholder "out"}" + ]; meta = with lib; { description = "A tool to get/set ATA/SATA drive parameters under Linux"; @@ -21,5 +22,4 @@ stdenv.mkDerivation rec { mainProgram = "hdparm"; maintainers = [ ]; }; - -} +}) |