1
0
Fork 0
nix-overlay/packages/redlib.nix
Daniel Kempkens 8f65bade05
All checks were successful
Build / build-arm64-linux (push) Successful in 1m1s
Build / build-amd64-linux (push) Successful in 5m31s
redlib: fix build
2024-03-12 19:49:24 +01:00

35 lines
828 B
Nix

{ pkgs, lib }:
let
inherit (pkgs.stdenv) isDarwin;
in
pkgs.rustPlatform.buildRustPackage rec {
pname = "redlib";
version = "0.31.2";
src = pkgs.fetchFromGitHub {
owner = "redlib-org";
repo = pname;
rev = "v${version}";
sha256 = "sha256-h/UoMlCno9ua2H3dhOfN7S+3MEh8AbpcJ9+0IWootDM=";
};
cargoPatches = [
../patches/redlib_cargo-lock.patch
];
cargoSha256 = "sha256-0ExHV7m9j4HFDpZqp32XYXmwHhyRobS1CUymRB0lt4Y=";
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" ];
};
}