2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv
|
2021-01-11 13:17:58 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2021-02-03 22:14:39 +00:00
|
|
|
version = "0.2.3";
|
2021-01-11 13:17:58 +00:00
|
|
|
pname = "reddsaver";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "manojkarthick";
|
|
|
|
repo = "reddsaver";
|
|
|
|
rev = "v${version}";
|
2021-02-03 22:14:39 +00:00
|
|
|
sha256 = "sha256-K6SyfYx8VG0t6yogHwd80AxQuj3TXofHLEqZcDsRs1s=";
|
2021-01-11 13:17:58 +00:00
|
|
|
};
|
|
|
|
|
2021-02-03 22:14:39 +00:00
|
|
|
cargoSha256 = "sha256-VDr7fcE13Wy7KoGG3U1GSbWqF5Oad4EobgzOL7dtJDo=";
|
2021-01-11 13:17:58 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
2021-01-15 05:42:41 +00:00
|
|
|
++ lib.optional stdenv.isDarwin Security;
|
2021-01-11 13:17:58 +00:00
|
|
|
|
2021-02-03 22:14:39 +00:00
|
|
|
# package does not contain tests as of v0.2.3
|
2021-01-11 13:17:58 +00:00
|
|
|
docCheck = false;
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
meta = with lib; {
|
2021-01-11 13:17:58 +00:00
|
|
|
description = "CLI tool to download saved images from Reddit";
|
|
|
|
homepage = "https://github.com/manojkarthick/reddsaver";
|
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
|
|
maintainers = [ maintainers.manojkarthick ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|