1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/tools/networking/pixiewps/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
685 B
Nix

{ 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 = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.nico202 ];
platforms = stdenv.lib.platforms.linux;
};
}