2021-04-11 21:37:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, nixosTests
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "libreddit";
|
2023-03-10 08:25:25 +00:00
|
|
|
version = "0.30.0";
|
2021-04-11 21:37:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-01 10:55:16 +00:00
|
|
|
owner = "libreddit";
|
2021-04-11 21:37:30 +00:00
|
|
|
repo = pname;
|
2022-11-26 15:38:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-10 08:25:25 +00:00
|
|
|
hash = "sha256-jV8U7znBFCYBmtI6fm+/5oKsLJ3/tQG16GUvNnBlp7A=";
|
2021-04-11 21:37:30 +00:00
|
|
|
};
|
|
|
|
|
2023-03-10 08:25:25 +00:00
|
|
|
cargoHash = "sha256-V7bT1uwSk9IW5rhKHW+6yHv+o+H3w7O/yuRpPDrcFic=";
|
2021-04-11 21:37:30 +00:00
|
|
|
|
2022-12-08 22:26:13 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2022-11-01 10:55:16 +00:00
|
|
|
Security
|
|
|
|
];
|
2021-04-11 21:37:30 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) libreddit;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Private front-end for Reddit";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "libreddit";
|
2022-11-01 10:55:16 +00:00
|
|
|
homepage = "https://github.com/libreddit/libreddit";
|
2022-11-26 15:38:45 +00:00
|
|
|
changelog = "https://github.com/libreddit/libreddit/releases/tag/v${version}";
|
2021-04-11 21:37:30 +00:00
|
|
|
license = with licenses; [ agpl3Only ];
|
2021-12-30 07:25:38 +00:00
|
|
|
maintainers = with maintainers; [ fab jojosch ];
|
2021-04-11 21:37:30 +00:00
|
|
|
};
|
|
|
|
}
|