1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-19 17:39:34 +00:00
nixpkgs/pkgs/servers/libreddit/default.nix

35 lines
745 B
Nix
Raw Normal View History

2021-04-11 22:37:30 +01:00
{ lib
, stdenv
, nixosTests
, rustPlatform
, fetchFromGitHub
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "libreddit";
2021-08-13 14:57:39 +01:00
version = "0.14.9";
2021-04-11 22:37:30 +01:00
src = fetchFromGitHub {
owner = "spikecodes";
repo = pname;
rev = "v${version}";
2021-08-13 14:57:39 +01:00
sha256 = "1z3qhlf0i4s3jqh0dml75912sikdvv2hxclai4my6wryk78v6099";
2021-04-11 22:37:30 +01:00
};
2021-08-13 14:57:39 +01:00
cargoSha256 = "0qdxhj9i3rhhnyla2glb2b45c51kyam8qg0038banwz9nw86jdjf";
2021-04-11 22:37:30 +01:00
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 ];
};
}