2023-12-28 12:34:17 +00:00
|
|
|
{ pkgs, lib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs.stdenv) isDarwin;
|
|
|
|
in
|
|
|
|
pkgs.rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "redlib";
|
2024-06-30 02:02:04 +00:00
|
|
|
version = "0.35.1";
|
2023-12-28 12:34:17 +00:00
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "redlib-org";
|
|
|
|
repo = pname;
|
2024-01-03 00:57:47 +00:00
|
|
|
rev = "v${version}";
|
2024-06-30 02:02:04 +00:00
|
|
|
sha256 = "sha256-W1v7iOE60/6UyZSHQW+L+wHCoKnKUNb3kpm4LVLPZ6c=";
|
2023-12-28 12:34:17 +00:00
|
|
|
};
|
|
|
|
|
2024-05-30 16:25:06 +00:00
|
|
|
# cargoPatches = [
|
|
|
|
# ../patches/redlib_cargo-lock.patch
|
|
|
|
# ];
|
2024-03-12 18:49:24 +00:00
|
|
|
|
2024-06-30 02:02:04 +00:00
|
|
|
cargoSha256 = "sha256-3NQWiu/nTtHrivYL1pgxqQxEuIW0xfjxwK0ZEa2y1Kk=";
|
2023-12-28 12:34:17 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
|
|
|
Security
|
|
|
|
]);
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Private front-end for Reddit";
|
|
|
|
homepage = "https://github.com/redlib-org/redlib";
|
|
|
|
license = [ licenses.agpl3Only ];
|
|
|
|
platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|