2017-03-09 15:20:22 -08:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, file, qrencode, miniupnpc }:
|
2015-01-14 17:20:22 -08:00
|
|
|
|
2017-03-09 15:20:22 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2015-01-14 17:20:22 -08:00
|
|
|
name = "pshs-${version}";
|
2018-03-15 02:41:10 -07:00
|
|
|
version = "0.3.3";
|
2015-01-14 17:20:22 -08:00
|
|
|
|
2017-03-09 15:20:22 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mgorny";
|
|
|
|
repo = "pshs";
|
|
|
|
rev = "v${version}";
|
2018-03-15 02:41:10 -07:00
|
|
|
sha256 = "04l03myh99npl78y8nss053gnc7k8q60vdbdpml19sshmwaw3fgi";
|
2015-01-14 17:20:22 -08:00
|
|
|
};
|
|
|
|
|
2017-03-09 15:20:22 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libevent file qrencode miniupnpc ];
|
2015-01-14 17:20:22 -08:00
|
|
|
|
2016-01-17 19:42:02 -08:00
|
|
|
# SSL requires libevent at 2.1 with ssl support
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [ "--disable-ssl" ];
|
2015-01-14 17:20:22 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pretty small HTTP server - a command-line tool to share files";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://github.com/mgorny/pshs;
|
2015-01-14 17:20:22 -08:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2017-03-09 15:20:22 -08:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-01-14 17:20:22 -08:00
|
|
|
};
|
|
|
|
}
|