nixpkgs/pkgs/applications/misc/reddsaver/default.nix

37 lines
857 B
Nix
Raw Normal View History

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