2016-01-18 04:42:02 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libevent, file, qrencode, miniupnpc }:
|
2015-01-15 02:20:22 +01:00
|
|
|
|
|
|
|
let
|
2016-01-18 04:42:02 +01:00
|
|
|
version = "0.3";
|
2015-01-15 02:20:22 +01:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "pshs-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.bitbucket.org/mgorny/pshs/downloads/pshs-${version}.tar.bz2";
|
2016-01-18 04:42:02 +01:00
|
|
|
sha256 = "0qvy1m9jmbjhbihs1qr9nasbaajl3n0x8bgz1vw9xvpkqymx5i63";
|
2015-01-15 02:20:22 +01:00
|
|
|
};
|
|
|
|
|
2016-01-18 04:42:02 +01:00
|
|
|
buildInputs = [ pkgconfig libevent file qrencode miniupnpc ];
|
2015-01-15 02:20:22 +01:00
|
|
|
|
2016-01-18 04:42:02 +01:00
|
|
|
# SSL requires libevent at 2.1 with ssl support
|
2015-01-15 02:20:22 +01:00
|
|
|
configureFlags = "--disable-ssl";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pretty small HTTP server - a command-line tool to share files";
|
|
|
|
homepage = "https://bitbucket.org/mgorny/pshs/";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eduarrrd ];
|
|
|
|
};
|
|
|
|
}
|