1 { lib, stdenv, fetchFromGitHub
8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub{
16 sha256 = "sha256-eTErN6CfKDey/wV+9o9cBVaG5FzCRBiA9UicrMz3KBc=";
19 nativeBuildInputs = [ makeWrapper ];
22 sed -ie 's|/var/lib/wifish|${placeholder "out"}/var/lib/wifish|' wifish
28 install -D -m0644 awk/wscanparse.awk ${placeholder "out"}/var/lib/wifish/wscanparse.awk
29 install -D -m0644 awk/wlistparse.awk ${placeholder "out"}/var/lib/wifish/wlistparse.awk
30 install -D -m0644 awk/wscan2menu.awk ${placeholder "out"}/var/lib/wifish/wscan2menu.awk
31 install -D -m0644 awk/iwparse.awk ${placeholder "out"}/var/lib/wifish/iwparse.awk
32 install -D -m0755 wifish ${placeholder "out"}/bin/wifish
36 wrapProgram ${placeholder "out"}/bin/wifish \
37 --prefix PATH ":" ${lib.makeBinPath [ dialog gawk wpa_supplicant ]}
41 homepage = "https://github.com/bougyman/wifish";
42 description = "Simple wifi shell script for linux";
43 mainProgram = "wifish";
44 license = licenses.wtfpl;
45 maintainers = with maintainers; [ AndersonTorres ];
46 platforms = with platforms; linux;