lol
1{ lib
2, rustPlatform
3, fetchFromGitHub
4, pkg-config
5, openssl
6, stdenv
7, Security
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "suckit";
12 version = "0.2.0";
13
14 src = fetchFromGitHub {
15 owner = "skallwar";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "sha256-M4/vD1sVny7hAf4h56Z2xy7yuCqH/H3qHYod6haZOs0=";
19 };
20
21 cargoSha256 = "sha256-JsH7TL9iITawuECm1hzs5oXFtnoUqLT4ug2CafoO2ao=";
22
23 nativeBuildInputs = [ pkg-config ];
24
25 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
26
27 # requires internet access
28 checkFlags = [
29 "--skip=test_download_url"
30 "--skip=test_external_download"
31 ];
32
33 meta = with lib; {
34 description = "Recursively visit and download a website's content to your disk";
35 homepage = "https://github.com/skallwar/suckit";
36 license = with licenses; [ asl20 /* or */ mit ];
37 maintainers = with maintainers; [ figsoda ];
38 };
39}