Merge pull request #133773 from erdnaxe/libreddit_update

libreddit: 0.10.1 -> 0.14.9
This commit is contained in:
Sandro 2021-08-13 17:17:36 +02:00 committed by GitHub
commit e60ece8875
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1475 deletions

File diff suppressed because it is too large Load diff

View file

@ -8,25 +8,19 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "libreddit"; pname = "libreddit";
version = "0.10.1"; version = "0.14.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "spikecodes"; owner = "spikecodes";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0f5xla6fgq4l9g95gwwvfxksaxj4zpayrsjacf53akjpxaqvqxdj"; sha256 = "1z3qhlf0i4s3jqh0dml75912sikdvv2hxclai4my6wryk78v6099";
}; };
cargoSha256 = "039k6kncdgy6q2lbcssj5dm9npk0yss5m081ps4nmdj2vjrkphf0"; cargoSha256 = "0qdxhj9i3rhhnyla2glb2b45c51kyam8qg0038banwz9nw86jdjf";
buildInputs = lib.optional stdenv.isDarwin Security; buildInputs = lib.optional stdenv.isDarwin Security;
cargoPatches = [
# Patch file to add/update Cargo.lock in the source code
# https://github.com/spikecodes/libreddit/issues/191
./add-Cargo.lock.patch
];
passthru.tests = { passthru.tests = {
inherit (nixosTests) libreddit; inherit (nixosTests) libreddit;
}; };