2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "reddsaver";
|
2021-03-19 17:17:44 +00:00
|
|
|
version = "0.3.2";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "manojkarthick";
|
|
|
|
repo = "reddsaver";
|
|
|
|
rev = "v${version}";
|
2021-03-19 17:17:44 +00:00
|
|
|
sha256 = "0ffci3as50f55n1v36hji4n0b3lkch5ylc75awjz65jz2gd2y2j4";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1xf26ldgfinzpakcp65w52fdl3arsm053vfnq7gk2fwnq55cjwl0";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
# package does not contain tests as of v0.3.2
|
2021-01-15 22:18:51 +00:00
|
|
|
docCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-19 19:06:45 +00:00
|
|
|
description = "CLI tool to download saved media from Reddit";
|
2021-01-15 22:18:51 +00:00
|
|
|
homepage = "https://github.com/manojkarthick/reddsaver";
|
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
|
|
maintainers = [ maintainers.manojkarthick ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|