about summary refs log tree commit diff
path: root/pkgs/by-name/us/username-anarchy/package.nix
blob: ed2271e0df694dcdcb407b4ad7520019532f223f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  stdenv,
  fetchFromGitHub,
  ruby,
}:

stdenv.mkDerivation rec {
  pname = "username-anarchy";
  version = "0.5";

  src = fetchFromGitHub {
    rev = "d5e653f0ab31d8d3fff79b2986f6ef9624d80fba";
    owner = "urbanadventurer";
    repo = "username-anarchy";
    hash = "sha256-1he1FzNc6y7jm/UwedG81z5QGehh2qsd1QkAsIXwrag=";
  };

  buildInputs = [ ruby ];

  preInstall = ''
    mkdir -p $out/bin
    install -Dm 555 format-plugins.rb $out/bin/
    install -Dm 555 username-anarchy $out/bin/
  '';

  meta = with lib; {
    homepage = "https://github.com/urbanadventurer/username-anarchy/";
    description = "Username generator tool for penetration testing";
    license = licenses.mit;
    maintainers = [ maintainers.akechishiro ];
    platforms = platforms.unix;
    mainProgram = "username-anarchy";
  };
}