{ lib , stdenv , nixosTests , rustPlatform , fetchFromGitHub , Security }: rustPlatform.buildRustPackage rec { pname = "libreddit"; version = "0.22.6"; src = fetchFromGitHub { owner = "spikecodes"; repo = pname; rev = "v${version}"; sha256 = "sha256-Dx0eVg1T9WTHeIQO9hwUoCAcUgQey8rlZ5+uxPIX0Wc="; }; cargoSha256 = "sha256-RGZgo9uxRmPpZzXu6AC2FPjOoZxLnh4gCjadAOTWJ4Q="; 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 jojosch ]; }; }