Commit ca4e6b47 authored by melvyn's avatar melvyn
Browse files

seafile-server: drop

parent fb9709ef
Loading
Loading
Loading
Loading
+0 −38
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  fetchFromGitHub,
  cmake,
  libevent,
}:

stdenv.mkDerivation {
  pname = "libevhtp";
  version = "unstable-2021-04-28";

  src = fetchFromGitHub {
    owner = "haiwen";
    repo = "libevhtp";
    rev = "18c649203f009ef1d77d6f8301eba09af3777adf";
    sha256 = "1rf0jcy2lf8jbzpkhfgv289hc8zdy5zs6sn36k4vlqvilginxiid";
  };

  nativeBuildInputs = [ cmake ];

  buildInputs = [ libevent ];

  cmakeFlags = [
    "-DEVHTP_DISABLE_SSL=ON"
    "-DEVHTP_BUILD_SHARED=ON"
  ];

  meta = with lib; {
    description = "Create extremely-fast and secure embedded HTTP servers with ease";
    homepage = "https://github.com/criticalstack/libevhtp";
    license = licenses.bsd3;
    maintainers = with maintainers; [
      schmittlauch
      melvyn2
    ];
  };
}
+0 −101
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  fetchFromGitHub,
  fetchpatch,
  pkg-config,
  python3,
  autoreconfHook,
  libuuid,
  libmysqlclient,
  sqlite,
  glib,
  libevent,
  libsearpc,
  openssl,
  fuse,
  libarchive,
  libjwt,
  curl,
  which,
  vala,
  cmake,
  oniguruma,
  nixosTests,
}:

let
  # seafile-server relies on a specific version of libevhtp.
  # It contains non upstreamed patches and is forked off an outdated version.
  libevhtp = import ./libevhtp.nix {
    inherit
      stdenv
      lib
      fetchFromGitHub
      cmake
      libevent
      ;
  };
in
stdenv.mkDerivation {
  pname = "seafile-server";
  version = "11.0.12"; # Doc links match Seafile 11.0 in seafile.nix – update if version changes.
  src = fetchFromGitHub {
    owner = "haiwen";
    repo = "seafile-server";
    rev = "5e6c0974e6abe5d92b8ba1db41c6ddbc1029f2d5"; # using a fixed revision because upstream may re-tag releases :/
    hash = "sha256-BVa4QZiHPkqRB5FvDlCSbEVxdnyxVy2KuCDb2orRMuI=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    python3
    libsearpc # searpc-codegen.py
    vala # valac
    which
  ];

  buildInputs = [
    libuuid
    libmysqlclient
    sqlite
    glib
    libsearpc
    libevent
    python3
    fuse
    libarchive
    libjwt
    libevhtp
    oniguruma
  ];

  patches = [
    # https://github.com/haiwen/seafile-server/pull/658
    (fetchpatch {
      url = "https://github.com/haiwen/seafile-server/commit/8029a11a731bfe142af43f230f47b93811ebaaaa.patch";
      hash = "sha256-AWNDXIyrKXgqgq3p0m8+s3YH8dKxWnf7uEMYzSsjmX4=";
    })
  ];

  postInstall = ''
    mkdir -p $out/share/seafile/sql
    cp -r scripts/sql $out/share/seafile
  '';

  passthru.tests = {
    inherit (nixosTests) seafile;
  };

  meta = with lib; {
    description = "File syncing and sharing software with file encryption and group sharing, emphasis on reliability and high performance";
    homepage = "https://github.com/haiwen/seafile-server";
    license = licenses.agpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [
      melvyn2
    ];
    mainProgram = "seaf-server";
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -2103,6 +2103,7 @@ mapAliases {
  scitoken-cpp = scitokens-cpp; # Added 2024-02-12
  scry = throw "'scry' has been removed as it was archived upstream. Use 'crystalline' instead"; # Added 2025-02-12
  scudcloud = throw "'scudcloud' has been removed as it was archived by upstream"; # Added 2025-07-24
  seafile-server = throw "'seafile-server' has been removed as it is unmaintained"; # Added 2025-08-21
  semeru-bin-16 = throw "Semeru 16 has been removed as it has reached its end of life"; # Added 2024-08-01
  semeru-jre-bin-16 = throw "Semeru 16 has been removed as it has reached its end of life"; # Added 2024-08-01
  sensu = throw "sensu has been removed as the upstream project is deprecated. Consider using `sensu-go`"; # Added 2024-10-28
+1 −0
Original line number Diff line number Diff line
@@ -743,6 +743,7 @@ mapAliases ({
  scikitlearn = scikit-learn; # added 2021-07-21
  scikit-optimize = throw "scikit-optimize has been removed because it is abandoned"; # added 2024-09-30
  scikits-samplerate = throw "scikits-samplerate has been removed, it was unsed and unmaintained since 2015"; # added 2024-05-23
  seaserv = throw "seaserv has been removed as it is unmaintained"; # Added 2025-08-21
  selectors2 = throw "selectors2 has been removed: archived by upstream."; # added 2024-07-27
  selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10
  sentry-sdk_2 = sentry-sdk; # added 2025-04-20
+0 −2
Original line number Diff line number Diff line
@@ -16395,8 +16395,6 @@ self: super: with self; {
  seabreeze = callPackage ../development/python-modules/seabreeze { };
  seaserv = toPythonModule (pkgs.seafile-server.override { python3 = self.python; });
  seasonal = callPackage ../development/python-modules/seasonal { };
  seatconnect = callPackage ../development/python-modules/seatconnect { };