27 stdenv.mkDerivation (finalAttrs: {
28 pname = "linux-wifi-hotspot";
31 src = fetchFromGitHub {
32 owner = "lakinduakash";
33 repo = "linux-wifi-hotspot";
34 rev = "v${finalAttrs.version}";
35 hash = "sha256-+WHYWQ4EyAt+Kq0LHEgC7Kk5HpIqThz6W3PIdW8Wojk=";
54 substituteInPlace ./src/scripts/Makefile \
55 --replace "etc" "$out/etc"
56 substituteInPlace ./src/scripts/wihotspot \
57 --replace "/usr" "$out"
58 substituteInPlace ./src/desktop/wifihotspot.desktop \
59 --replace "/usr" "$out"
60 substituteInPlace ./src/scripts/policies/polkit.policy \
61 --replace "/usr" "$out"
64 makeFlags = [ "PREFIX=${placeholder "out"}" ];
67 wrapProgram $out/bin/create_ap \
88 wrapProgram $out/bin/wihotspot-gui \
89 --prefix PATH : ${lib.makeBinPath [ iw ]} \
90 --prefix PATH : "${placeholder "out"}/bin"
92 wrapProgram $out/bin/wihotspot \
93 --prefix PATH : ${lib.makeBinPath [ iw ]} \
94 --prefix PATH : "${placeholder "out"}/bin"
98 description = "Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface";
99 homepage = "https://github.com/lakinduakash/linux-wifi-hotspot";
100 license = licenses.bsd2;
101 maintainers = with maintainers; [
105 platforms = platforms.unix;