about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/web-apps/fileshelter/default.nix
blob: d7510e7d1e03719248f26e01af73764ade4e3c5e (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
27
28
29
30
31
32
33
34
{ stdenv, fetchFromGitHub, autoreconfHook, libzip, boost, wt3, libconfig, pkgconfig } :

stdenv.mkDerivation rec {
  pname = "fileshelter";
  version = "3.0.0";

  src = fetchFromGitHub {
    owner = "epoupon";
    repo = "fileshelter";
    rev = "v${version}";
    sha256 = "1n9hrls3l9gf8wfz6m9bylma1b1hdvdqsksv2dlp1zdgjdzv200b";
  };

  enableParallelBuilding = true;

  nativeBuildInputs = [ autoreconfHook pkgconfig ];
  buildInputs = [ libzip boost wt3 libconfig ];

  NIX_LDFLAGS = [
    "-lpthread"
  ];

  postInstall = ''
    ln -s ${wt3}/share/Wt/resources $out/share/fileshelter/docroot/resources
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/epoupon/fileshelter;
    description = "FileShelter is a 'one-click' file sharing web application";
    maintainers = [ maintainers.willibutz ];
    license = licenses.gpl3;
    platforms = [ "x86_64-linux" ];
  };
}