2017-12-19 07:09:01 +00:00
|
|
|
{stdenv, fetchurl, which, autoreconfHook, pkgconfig, curl, vala, python, intltool, fuse, ccnet}:
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2017-12-19 07:09:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-06 17:09:33 +00:00
|
|
|
version = "6.1.0";
|
2014-02-04 19:02:46 +00:00
|
|
|
name = "seafile-shared-${version}";
|
|
|
|
|
2017-12-19 07:09:01 +00:00
|
|
|
src = fetchurl {
|
2014-02-04 19:02:46 +00:00
|
|
|
url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz";
|
2017-08-06 17:09:33 +00:00
|
|
|
sha256 = "03zvxk25311xgn383k54qvvpr8xbnl1vxd99fg4ca9yg5rmir1q6";
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
|
2017-12-19 07:09:01 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig which autoreconfHook vala intltool ];
|
|
|
|
buildInputs = [ python fuse ];
|
2015-01-09 12:37:44 +00:00
|
|
|
propagatedBuildInputs = [ ccnet curl ];
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2017-12-19 07:09:01 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-server"
|
|
|
|
"--disable-console"
|
|
|
|
];
|
2014-02-04 19:02:46 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2017-12-19 07:09:01 +00:00
|
|
|
# Remove seafile binary
|
|
|
|
rm -rf "$out/bin/seafile"
|
|
|
|
# Remove cli client binary
|
|
|
|
rm -rf "$out/bin/seaf-cli"
|
2014-02-04 19:02:46 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-19 07:09:01 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/haiwen/seafile;
|
2014-02-04 19:02:46 +00:00
|
|
|
description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons";
|
2017-12-19 07:09:01 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2018-03-10 23:46:41 +00:00
|
|
|
maintainers = [ ];
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
}
|