35 lines
751 B
Nix
35 lines
751 B
Nix
{ lib
|
|
, stdenv
|
|
, nixosTests
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "libreddit";
|
|
version = "0.21.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spikecodes";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-pALPhSoamsU5xEbSoXFe+Cikl16gxTXccUATMkYB97M=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-/P8wyFPCcCoGINtJ0qom3xLlkunH6xZPd7/7ynXmTy4=";
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) libreddit;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Private front-end for Reddit";
|
|
homepage = "https://github.com/spikecodes/libreddit";
|
|
license = with licenses; [ agpl3Only ];
|
|
maintainers = with maintainers; [ fab jojosch ];
|
|
};
|
|
}
|