···1+{ stdenv, fetchurl, pkgconfig, libevent, file, qrencode }:
2+3+let
4+ version = "0.2.5";
5+in stdenv.mkDerivation {
6+ name = "pshs-${version}";
7+8+ src = fetchurl {
9+ url = "https://www.bitbucket.org/mgorny/pshs/downloads/pshs-${version}.tar.bz2";
10+ sha256 = "1lbybww9b74a9ssrii15w6qby0d66j367kara7kmfhakpv8jsvyh";
11+ };
12+13+ buildInputs = [ pkgconfig libevent file qrencode ];
14+15+ # TODO: enable ssl once dependencies
16+ # (libssl libcrypto libevent >= 2.1 libevent_openssl) can be met
17+ configureFlags = "--disable-ssl";
18+19+ meta = {
20+ description = "Pretty small HTTP server - a command-line tool to share files";
21+ homepage = "https://bitbucket.org/mgorny/pshs/";
22+ license = stdenv.lib.licenses.bsd3;
23+ maintainers = [ stdenv.lib.maintainers.eduarrrd ];
24+ };
25+}
+2
pkgs/top-level/all-packages.nix
···78377838 postfix = postfix211;
7839007840 pulseaudio = callPackage ../servers/pulseaudio {
7841 gconf = gnome.GConf;
7842 # The following are disabled in the default build, because if this
···78377838 postfix = postfix211;
78397840+ pshs = callPackage ../servers/http/pshs { };
7841+7842 pulseaudio = callPackage ../servers/pulseaudio {
7843 gconf = gnome.GConf;
7844 # The following are disabled in the default build, because if this