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.1.2";
13
14 src = fetchFromGitHub {
15 owner = "skallwar";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "0wr03yvrqa9p6m127fl4hcf9057i11zld898qz4kbdyiynpi0166";
19 };
20
21 cargoSha256 = "sha256-6otIWAAf9pI4A8kxK3dyOVpkw+SJ3/YAvTahDSXMWNc=";
22
23 nativeBuildInputs = [ pkg-config ];
24
25 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
26
27 # requires internet access
28 checkFlags = [ "--skip=test_download_url" ];
29
30 meta = with lib; {
31 description = "Recursively visit and download a website's content to your disk";
32 homepage = "https://github.com/skallwar/suckit";
33 license = with licenses; [ asl20 /* or */ mit ];
34 maintainers = with maintainers; [ figsoda ];
35 };
36}