depot/third_party/nixpkgs/pkgs/tools/networking/pixiewps/default.nix
Default email d0d8e8fc71 Project import generated by Copybara.
GitOrigin-RevId: d3f7e969b9860fb80750147aeb56dab1c730e756
2021-03-23 19:22:30 +00:00

26 lines
667 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "pixiewps";
version = "1.2.2";
src = fetchFromGitHub {
owner = "wiire";
repo = "pixiewps";
rev = "v${version}";
sha256 = "09znnj7p8cks7zxzklkdm4zy2qnp92vhngm9r0zfgawnl2b4r2aw";
};
preBuild = ''
cd src
substituteInPlace Makefile --replace "\$(DESTDIR)/usr" "$out"
substituteInPlace Makefile --replace "/local" ""
'';
meta = {
description = "An offline WPS bruteforce utility";
homepage = "https://github.com/wiire/pixiewps";
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.nico202 ];
platforms = lib.platforms.all;
};
}