Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7 versionCheckHook,
8 nix-update-script,
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "rwalk";
13 version = "0.9.0";
14
15 src = fetchFromGitHub {
16 owner = "cestef";
17 repo = "rwalk";
18 tag = "v${version}";
19 hash = "sha256-W42b3fUezMpOPaNmTogUbgn67nCiKteCkkYUAux9Ng4=";
20 };
21
22 cargoHash = "sha256-9zZLHjDpnxL3aR8zX4eNU1mpMDzMqzMC+Wr+DWVimUo=";
23
24 nativeBuildInputs = [
25 pkg-config
26 ];
27
28 buildInputs = [
29 openssl
30 ];
31
32 env = {
33 OPENSSL_NO_VENDOR = true;
34 };
35
36 nativeInstallCheckInputs = [
37 versionCheckHook
38 ];
39
40 versionCheckProgramArg = "--version";
41 doInstallCheck = true;
42
43 passthru = {
44 updateScript = nix-update-script { };
45 };
46
47 meta = {
48 description = "Blazingly fast web directory scanner written in Rust";
49 homepage = "https://github.com/cestef/rwalk";
50 changelog = "https://github.com/cestef/rwalk/blob/v${version}/CHANGELOG.md";
51 license = lib.licenses.mit;
52 maintainers = with lib.maintainers; [ pwnwriter ];
53 mainProgram = "rwalk";
54 };
55}