about summary refs log tree commit diff
path: root/pkgs/tools/networking/pixiewps/default.nix
blob: 82d420755d032e783f7355cfd1544416927372c2 (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
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "pixiewps";
  version = "1.4.2";
  src = fetchFromGitHub {
    owner = "wiire-a";
    repo = "pixiewps";
    rev = "v${version}";
    sha256 = "sha256-cJ20Gp6YaSdgUXK/ckK5Yv0rGbGXuFMP5zKZG0c4oOY=";
  };

  preBuild = ''
    substituteInPlace Makefile --replace "/usr/local" "$out"
  '';

  meta = {
    description = "An offline WPS bruteforce utility";
    homepage = "https://github.com/wiire-a/pixiewps";
    license = lib.licenses.gpl3;
    maintainers = [ lib.maintainers.nico202 ];
    platforms = lib.platforms.all;
  };
}