1
0
Fork 0
nix-overlay/packages/redlib.nix

32 lines
764 B
Nix
Raw Normal View History

2023-12-28 12:34:17 +00:00
{ pkgs, lib }:
let
inherit (pkgs.stdenv) isDarwin;
in
pkgs.rustPlatform.buildRustPackage rec {
pname = "redlib";
2024-01-03 00:57:47 +00:00
version = "0.31.0";
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}";
sha256 = "sha256-d3Jjs/a2EgdqRBTjXKwDDRnU6orb7RQGl1CVz9b9SdI=";
2023-12-28 12:34:17 +00:00
};
2024-01-03 00:57:47 +00:00
cargoSha256 = "sha256-2MugS0/MO85lQvDbiFwnsX4LYdk7TACDFR8OOLEFGUQ=";
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" ];
};
}