mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
40 lines
871 B
Nix
40 lines
871 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
openssl,
|
|
pkg-config,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "reddsaver";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "manojkarthick";
|
|
repo = "reddsaver";
|
|
rev = "v${version}";
|
|
sha256 = "07xsrc0w0z7w2w0q44aqnn1ybf9vqry01v3xr96l1xzzc5mkqdzf";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-xYtdGhuieFudfJz+LxUjP7mV8uItaIvLahCH7vBWTtg=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ];
|
|
|
|
# package does not contain tests as of v0.3.3
|
|
docCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "CLI tool to download saved media from Reddit";
|
|
homepage = "https://github.com/manojkarthick/reddsaver";
|
|
license = with licenses; [
|
|
mit # or
|
|
asl20
|
|
];
|
|
maintainers = [ maintainers.manojkarthick ];
|
|
mainProgram = "reddsaver";
|
|
};
|
|
|
|
}
|