depot/third_party/nixpkgs/pkgs/tools/networking/suckit/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

39 lines
900 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "suckit";
version = "0.2.0";
src = fetchFromGitHub {
owner = "skallwar";
repo = pname;
rev = "v${version}";
sha256 = "sha256-M4/vD1sVny7hAf4h56Z2xy7yuCqH/H3qHYod6haZOs0=";
};
cargoSha256 = "sha256-JsH7TL9iITawuECm1hzs5oXFtnoUqLT4ug2CafoO2ao=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
# requires internet access
checkFlags = [
"--skip=test_download_url"
"--skip=test_external_download"
];
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 ];
};
}