mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
db8204b8c1
Diff: https://github.com/libreddit/libreddit/compare/refs/tags/v0.29.4...v0.30.0 Changelog: https://github.com/libreddit/libreddit/releases/tag/v0.30.0
38 lines
849 B
Nix
38 lines
849 B
Nix
{ lib
|
|
, stdenv
|
|
, nixosTests
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "libreddit";
|
|
version = "0.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libreddit";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jV8U7znBFCYBmtI6fm+/5oKsLJ3/tQG16GUvNnBlp7A=";
|
|
};
|
|
|
|
cargoHash = "sha256-V7bT1uwSk9IW5rhKHW+6yHv+o+H3w7O/yuRpPDrcFic=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
Security
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) libreddit;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Private front-end for Reddit";
|
|
homepage = "https://github.com/libreddit/libreddit";
|
|
changelog = "https://github.com/libreddit/libreddit/releases/tag/v${version}";
|
|
license = with licenses; [ agpl3Only ];
|
|
maintainers = with maintainers; [ fab jojosch ];
|
|
};
|
|
}
|