2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, nixosTests
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "libreddit";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.30.1";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-02 22:02:43 +00:00
|
|
|
owner = "libreddit";
|
2021-08-05 21:33:18 +00:00
|
|
|
repo = pname;
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-Z+COSDiJoWHHZQM4BJca0JA5RrJKYjhfkFj8yx/0gZA=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
cargoHash = "sha256-42xtt5dCcV6+TcssFjufkVtDSRiDGaatAaiP6K8DT8I=";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2022-11-02 22:02:43 +00:00
|
|
|
Security
|
|
|
|
];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) libreddit;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Private front-end for Reddit";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "libreddit";
|
2022-11-02 22:02:43 +00:00
|
|
|
homepage = "https://github.com/libreddit/libreddit";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/libreddit/libreddit/releases/tag/v${version}";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = with licenses; [ agpl3Only ];
|
2021-12-30 13:39:12 +00:00
|
|
|
maintainers = with maintainers; [ fab jojosch ];
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
}
|