2021-10-11 16:52:03 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "suckit";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.2.0";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skallwar";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-M4/vD1sVny7hAf4h56Z2xy7yuCqH/H3qHYod6haZOs0=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-JsH7TL9iITawuECm1hzs5oXFtnoUqLT4ug2CafoO2ao=";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
# requires internet access
|
2022-08-12 12:06:08 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip=test_download_url"
|
|
|
|
"--skip=test_external_download"
|
|
|
|
];
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Recursively visit and download a website's content to your disk";
|
|
|
|
homepage = "https://github.com/skallwar/suckit";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|