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 {
|
2015-01-15 01:20:22 +00:00
|
|
|
name = "pshs-${version}";
|
2018-02-27 19:46:56 +00:00
|
|
|
version = "0.3.2";
|
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}";
|
2018-02-27 19:46:56 +00:00
|
|
|
sha256 = "1ffdyv5qiqdg3jq8y91fsml046g88d7fyy2k81yii11jw3yx2js0";
|
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
|
2015-01-15 01:20:22 +00:00
|
|
|
configureFlags = "--disable-ssl";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pretty small HTTP server - a command-line tool to share files";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/mgorny/pshs;
|
2015-01-15 01:20:22 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eduarrrd ];
|
2017-03-09 23:20:22 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-01-15 01:20:22 +00:00
|
|
|
};
|
|
|
|
}
|