uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
56
pkgs/servers/seafile-server/default.nix
Normal file
56
pkgs/servers/seafile-server/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ stdenv, lib, fetchFromGitHub, pkg-config, python3, autoreconfHook
|
||||
, libuuid, sqlite, glib, libevent, libsearpc, openssl, fuse, libarchive, 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 rec {
|
||||
pname = "seafile-server";
|
||||
version = "8.0.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "haiwen";
|
||||
repo = "seafile-server";
|
||||
rev = "807867afb7a86f526a6584278914ce9f3f51d1da";
|
||||
sha256 = "1nq6dw4xzifbyhxn7yn5398q2sip1p1xwqz6xbis4nzgx4jldd4g";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
libuuid
|
||||
sqlite
|
||||
openssl
|
||||
glib
|
||||
libsearpc
|
||||
libevent
|
||||
python3
|
||||
fuse
|
||||
libarchive
|
||||
which
|
||||
vala
|
||||
libevhtp
|
||||
oniguruma
|
||||
];
|
||||
|
||||
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; [ greizgh schmittlauch ];
|
||||
};
|
||||
}
|
||||
29
pkgs/servers/seafile-server/libevhtp.nix
Normal file
29
pkgs/servers/seafile-server/libevhtp.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, libevent }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
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; [ greizgh schmittlauch ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue