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