specify latest version of nuclei
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
dbe9a45a26
commit
349623dda8
|
@ -11,3 +11,4 @@
|
||||||
extraGroups = [ ];
|
extraGroups = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,28 @@
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
# Redefining the package instead of overriding as overriding GoModules seems broken
|
||||||
|
# see: https://github.com/NixOS/nixpkgs/issues/86349
|
||||||
|
nuclei-latest = pkgs.buildGoModule rec {
|
||||||
|
pname = "nuclei";
|
||||||
|
version = "2.9.2";
|
||||||
|
|
||||||
{
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "projectdiscovery";
|
||||||
|
repo = pname;
|
||||||
|
rev = "1f9a065713924b28b203e2108fc76d7a1ec49068";
|
||||||
|
hash = "sha256-QiegMoBy0gZMyQl2MRAwR14zXeh8wvVonyETdAzHbj0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-0JNwoBqLKH1F/0Tr8o35gCSNT/2plIjIQvZRuzAZ5P8=";
|
||||||
|
|
||||||
|
modRoot = "./v2";
|
||||||
|
subPackages = [ "cmd/nuclei/" ];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
};
|
||||||
|
in {
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
@ -16,13 +36,7 @@
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
system.stateVersion = "23.05"; # Did you read the comment?
|
||||||
|
|
||||||
# Additional packages
|
# Additional packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ gcc go jq rustup nuclei-latest ];
|
||||||
gcc
|
|
||||||
go
|
|
||||||
jq
|
|
||||||
nuclei
|
|
||||||
rustup
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ ];
|
networking.firewall.allowedTCPPorts = [ ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue