Files
nixpkgs/pkgs/by-name/hd/hdapsd/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

35 lines
753 B
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
udevCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hdapsd";
version = "20250908";
src = fetchurl {
url = "https://github.com/linux-thinkpad/hdapsd/releases/download/${finalAttrs.version}/hdapsd-${finalAttrs.version}.tar.gz";
hash = "sha256-qENcOFJ9x5CkN72ZkTx/OL+gpwAYJlJomKvAjTklDYQ=";
};
nativeBuildInputs = [
pkg-config
udevCheckHook
];
doInstallCheck = true;
postInstall = builtins.readFile ./postInstall.sh;
meta = {
description = "Hard Drive Active Protection System Daemon";
mainProgram = "hdapsd";
homepage = "https://github.com/linux-thinkpad/hdapsd";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
})