Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109019 from manojkarthick/reddsaver-init
reddsaver: init at 0.2.2
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters