Skip to content

Commit

Permalink
Merge pull request #109019 from manojkarthick/reddsaver-init
Browse files Browse the repository at this point in the history
reddsaver: init at 0.2.2
  • Loading branch information
SuperSandro2000 committed Jan 11, 2021
2 parents e614b5a + 36ee158 commit f18ba04
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/applications/misc/reddsaver/default.nix
@@ -0,0 +1,36 @@
{ stdenv
, fetchFromGitHub
, rustPlatform
, openssl
, pkg-config
, Security
}:

rustPlatform.buildRustPackage rec {
version = "0.2.2";
pname = "reddsaver";

src = fetchFromGitHub {
owner = "manojkarthick";
repo = "reddsaver";
rev = "v${version}";
sha256 = "0802jz503jhyz5q6mg1fj2bvkl4nggvs8y03zddd298ymplx5dbx";
};

cargoSha256 = "0z8q187331j3rxj8hzym25pwrikxbd0r829v29y8w6v5n0hb47fs";

nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ stdenv.lib.optional stdenv.isDarwin Security;

# package does not contain tests as of v0.2.2
docCheck = false;

meta = with stdenv.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 ];
};

}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -24254,6 +24254,10 @@ in

recode = callPackage ../tools/text/recode { };

reddsaver = callPackage ../applications/misc/reddsaver {
inherit (darwin.apple_sdk.frameworks) Security;
};

rednotebook = python3Packages.callPackage ../applications/editors/rednotebook { };

remotebox = callPackage ../applications/virtualization/remotebox { };
Expand Down

0 comments on commit f18ba04

Please sign in to comment.