1{ stdenv, fetchurl }:
2
3let version = "20141203"; in
4stdenv.mkDerivation rec {
5 name = "hdapsd-"+version;
6
7 src = fetchurl {
8 url = "https://github.com/evgeni/hdapsd/releases/download/${version}/hdapsd-${version}.tar.gz";
9 sha256 = "0ppgrfabd0ivx9hyny3c3rv4rphjyxcdsd5svx5pgfai49mxnl36";
10 };
11
12 postInstall = builtins.readFile ./postInstall.sh;
13
14 meta = with stdenv.lib;
15 { description = "Hard Drive Active Protection System Daemon";
16 homepage = "http://hdaps.sf.net/";
17 license = licenses.gpl2;
18 platforms = platforms.linux;
19 maintainers = [ maintainers.ehmry ];
20 };
21}