summary refs log tree commit diff
path: root/pkgs/os-specific/linux/hdapsd/default.nix
blob: 959fa9ac6e8a40e5440f20b420d86194b219b4ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "hdapsd";
  version = "20141203";

  src = fetchurl {
    url = "https://github.com/evgeni/hdapsd/releases/download/${version}/hdapsd-${version}.tar.gz";
    sha256 = "0ppgrfabd0ivx9hyny3c3rv4rphjyxcdsd5svx5pgfai49mxnl36";
  };

  postInstall = builtins.readFile ./postInstall.sh;

  meta = with lib;
    { description = "Hard Drive Active Protection System Daemon";
      homepage = "http://hdaps.sf.net/";
      license = licenses.gpl2;
      platforms = platforms.linux;
      maintainers = [ maintainers.ehmry ];
    };
}