nixpkgs/pkgs/servers/http/pshs/default.nix

25 lines
728 B
Nix
Raw Normal View History

2016-01-18 04:42:02 +01:00
{ stdenv, fetchurl, pkgconfig, libevent, file, qrencode, miniupnpc }:
let
2016-01-18 04:42:02 +01:00
version = "0.3";
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";
};
2016-01-18 04:42:02 +01:00
buildInputs = [ pkgconfig libevent file qrencode miniupnpc ];
2016-01-18 04:42:02 +01:00
# SSL requires libevent at 2.1 with ssl support
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 ];
};
}