mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
35 lines
753 B
Nix
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;
|
|
};
|
|
})
|