nixpkgs/pkgs/servers/libreddit/default.nix

38 lines
851 B
Nix
Raw Normal View History

2021-04-11 23:37:30 +02:00
{ lib
, stdenv
, nixosTests
, rustPlatform
, fetchFromGitHub
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "libreddit";
version = "0.25.0";
2021-04-11 23:37:30 +02:00
src = fetchFromGitHub {
2022-11-01 11:55:16 +01:00
owner = "libreddit";
2021-04-11 23:37:30 +02:00
repo = pname;
2022-11-26 16:38:45 +01:00
rev = "refs/tags/v${version}";
hash = "sha256-IIL06jhl9wMLQTQtr96kq4Kkf2oGO3xxJxcB9Y34iUk=";
2021-04-11 23:37:30 +02:00
};
cargoSha256 = "sha256-uIr8aUDErHVUKML2l6nITSBpOxqg3h1Md0948BxvutI=";
2021-04-11 23:37:30 +02:00
buildInputs = lib.optionals stdenv.isDarwin [
2022-11-01 11:55:16 +01:00
Security
];
2021-04-11 23:37:30 +02:00
passthru.tests = {
inherit (nixosTests) libreddit;
};
meta = with lib; {
description = "Private front-end for Reddit";
2022-11-01 11:55:16 +01:00
homepage = "https://github.com/libreddit/libreddit";
2022-11-26 16:38:45 +01:00
changelog = "https://github.com/libreddit/libreddit/releases/tag/v${version}";
2021-04-11 23:37:30 +02:00
license = with licenses; [ agpl3Only ];
maintainers = with maintainers; [ fab jojosch ];
2021-04-11 23:37:30 +02:00
};
}