35 lines
834 B
Nix
35 lines
834 B
Nix
{ pkgs, lib }:
|
|
|
|
let
|
|
inherit (pkgs.stdenv) isDarwin;
|
|
in
|
|
pkgs.rustPlatform.buildRustPackage rec {
|
|
pname = "redlib";
|
|
version = "0.35.1";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "redlib-org";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-W1v7iOE60/6UyZSHQW+L+wHCoKnKUNb3kpm4LVLPZ6c=";
|
|
};
|
|
|
|
# cargoPatches = [
|
|
# ../patches/redlib_cargo-lock.patch
|
|
# ];
|
|
|
|
cargoSha256 = "sha256-3NQWiu/nTtHrivYL1pgxqQxEuIW0xfjxwK0ZEa2y1Kk=";
|
|
|
|
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" ];
|
|
};
|
|
}
|