diff options
author | Raphael Megzari <raphael@megzari.com> | 2021-07-09 23:28:08 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 16:28:08 +0200 |
commit | 84eb0781aa54d647e6daca87e4c8e22fc5cbb957 (patch) | |
tree | 7a50f6b88beb34a233ff94e50d96f31f569f4370 /pkgs/servers | |
parent | 89d0555568a1a21c95a5a8bcbf6180faa89b9ab6 (diff) |
lemmy: init 0.11.2 (#129723)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/web-apps/lemmy/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/servers/web-apps/lemmy/default.nix b/pkgs/servers/web-apps/lemmy/default.nix new file mode 100644 index 0000000000000..e9b6eb1162903 --- /dev/null +++ b/pkgs/servers/web-apps/lemmy/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, openssl +, postgresql +, libiconv +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "lemmy-server"; + version = "0.11.2"; + + src = fetchFromGitHub { + owner = "LemmyNet"; + repo = "lemmy"; + rev = version; + sha256 = "sha256-wDRBeAYjPpAd3DL99fH4Yng994hGmAmxlBqzOeXTP88="; + }; + + cargoSha256 = "sha256-7wF5mUjSeJvCNLZcR6XB31RX2RLOOEyTGpOQxg+NcWk="; + + buildInputs = [ postgresql ] + ++ lib.optionals stdenv.isDarwin [ libiconv Security ]; + + # Using OPENSSL_NO_VENDOR is not an option on darwin + # As of version 0.10.35 rust-openssl looks for openssl on darwin + # with a hardcoded path to /usr/lib/libssl.x.x.x.dylib + # https://github.com/sfackler/rust-openssl/blob/master/openssl-sys/build/find_normal.rs#L115 + OPENSSL_LIB_DIR = "${openssl.out}/lib"; + OPENSSL_INCLUDE_DIR = "${openssl.dev}/include"; + + meta = with lib; { + description = "Ultra relevant and instant full-text search API"; + homepage = "https://join-lemmy.org/"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ happysalada ]; + }; +} |