2018-01-04 20:20:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, libzip, boost, wt3, libconfig, pkgconfig } :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-04 23:32:52 +00:00
|
|
|
pname = "fileshelter";
|
2018-01-04 20:20:35 +00:00
|
|
|
version = "3.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "epoupon";
|
|
|
|
repo = "fileshelter";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1n9hrls3l9gf8wfz6m9bylma1b1hdvdqsksv2dlp1zdgjdzv200b";
|
|
|
|
};
|
|
|
|
|
2018-04-18 23:02:25 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-01-04 20:20:35 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libzip boost wt3 libconfig ];
|
|
|
|
|
2019-01-04 19:33:50 +00:00
|
|
|
NIX_LDFLAGS = [
|
|
|
|
"-lpthread"
|
|
|
|
];
|
|
|
|
|
2018-01-04 20:20:35 +00:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|