specify latest version of nuclei
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Vivian 2023-05-04 09:26:36 +02:00
parent dbe9a45a26
commit 349623dda8
2 changed files with 23 additions and 8 deletions

View file

@ -11,3 +11,4 @@
extraGroups = [ ];
};
}

View file

@ -3,8 +3,28 @@
# and in the NixOS manual (accessible by running nixos-help).
{ 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 ];
# This value determines the NixOS release from which the default
@ -16,13 +36,7 @@
system.stateVersion = "23.05"; # Did you read the comment?
# Additional packages
environment.systemPackages = with pkgs; [
gcc
go
jq
nuclei
rustup
];
environment.systemPackages = with pkgs; [ gcc go jq rustup nuclei-latest ];
networking.firewall.allowedTCPPorts = [ ];