1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, file, qrencode, miniupnpc }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1j8j4r0vsmp6226q6jdgf9bzhx3qk7vdliwaw7f8kcsrkndkg6p4";
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15 buildInputs = [ libevent file qrencode miniupnpc ];
17 # SSL requires libevent at 2.1 with ssl support
18 configureFlags = [ "--disable-ssl" ];
21 description = "Pretty small HTTP server - a command-line tool to share files";
23 homepage = "https://github.com/mgorny/pshs";
24 license = lib.licenses.bsd3;
25 platforms = lib.platforms.linux;