about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/pshs/default.nix
blob: bbac8b843b15d5dec36298490ea65ab4f721ae5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, file, qrencode, miniupnpc }:

stdenv.mkDerivation rec {
  pname = "pshs";
  version = "0.3.4";

  src = fetchFromGitHub {
    owner = "mgorny";
    repo = "pshs";
    rev = "v${version}";
    sha256 = "1j8j4r0vsmp6226q6jdgf9bzhx3qk7vdliwaw7f8kcsrkndkg6p4";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [ libevent file qrencode miniupnpc ];

  # 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://github.com/mgorny/pshs";
    license = lib.licenses.bsd3;
    platforms = lib.platforms.linux;
  };
}