mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
libreddit: init at 0.10.1
This commit is contained in:
parent
980bbc237a
commit
ecae4bfe9d
1466
pkgs/servers/libreddit/add-Cargo.lock.patch
Normal file
1466
pkgs/servers/libreddit/add-Cargo.lock.patch
Normal file
File diff suppressed because it is too large
Load Diff
40
pkgs/servers/libreddit/default.nix
Normal file
40
pkgs/servers/libreddit/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, nixosTests
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "libreddit";
|
||||
version = "0.10.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spikecodes";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0f5xla6fgq4l9g95gwwvfxksaxj4zpayrsjacf53akjpxaqvqxdj";
|
||||
};
|
||||
|
||||
cargoSha256 = "039k6kncdgy6q2lbcssj5dm9npk0yss5m081ps4nmdj2vjrkphf0";
|
||||
|
||||
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 = {
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -6245,6 +6245,10 @@ in
|
||||
|
||||
libzmf = callPackage ../development/libraries/libzmf {};
|
||||
|
||||
libreddit = callPackage ../servers/libreddit {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
librespeed-cli = callPackage ../tools/misc/librespeed-cli { };
|
||||
|
||||
libreswan = callPackage ../tools/networking/libreswan { };
|
||||
|
Loading…
Reference in New Issue
Block a user