2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libzip, boost, wt4, libconfig, pkg-config } :
|
2018-01-04 21:20:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-05 00:32:52 +01:00
|
|
|
pname = "fileshelter";
|
2019-10-20 11:46:54 +02:00
|
|
|
version = "4.0.1";
|
2018-01-04 21:20:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "epoupon";
|
|
|
|
repo = "fileshelter";
|
|
|
|
rev = "v${version}";
|
2019-10-20 11:46:54 +02:00
|
|
|
sha256 = "07n70wwqj7lqdxs3wya1m8bwg8l6lgmmlfpwyv3r3s4dfzb1b3ka";
|
2018-01-04 21:20:35 +01:00
|
|
|
};
|
|
|
|
|
2018-04-19 00:02:25 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2019-10-20 11:46:54 +02:00
|
|
|
buildInputs = [ libzip boost wt4 libconfig ];
|
2018-01-04 21:20:35 +01:00
|
|
|
|
2019-10-30 02:29:30 +01:00
|
|
|
NIX_LDFLAGS = "-lpthread";
|
2019-01-04 20:33:50 +01:00
|
|
|
|
2018-01-04 21:20:35 +01:00
|
|
|
postInstall = ''
|
2019-10-20 11:46:54 +02:00
|
|
|
ln -s ${wt4}/share/Wt/resources $out/share/fileshelter/docroot/resources
|
2018-01-04 21:20:35 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-20 11:46:54 +02:00
|
|
|
homepage = "https://github.com/epoupon/fileshelter";
|
2018-01-04 21:20:35 +01:00
|
|
|
description = "FileShelter is a 'one-click' file sharing web application";
|
|
|
|
maintainers = [ maintainers.willibutz ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|