about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/hdapsd/default.nix
blob: e9dca6fd8927e0e7e01c50b7d679743f782d7143 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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";
      mainProgram = "hdapsd";
      homepage = "http://hdaps.sf.net/";
      license = licenses.gpl2;
      platforms = platforms.linux;
      maintainers = [ maintainers.ehmry ];
    };
}