3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/web-apps/fileshelter/default.nix

35 lines
896 B
Nix
Raw Normal View History

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