diff options
Diffstat (limited to 'pkgs/os-specific/linux/linux-wifi-hotspot/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/linux-wifi-hotspot/default.nix | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/pkgs/os-specific/linux/linux-wifi-hotspot/default.nix b/pkgs/os-specific/linux/linux-wifi-hotspot/default.nix deleted file mode 100644 index d616675e497b9..0000000000000 --- a/pkgs/os-specific/linux/linux-wifi-hotspot/default.nix +++ /dev/null @@ -1,105 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, which -, pkg-config -, glib -, gtk3 -, iw -, makeWrapper -, qrencode -, hostapd -, getopt -, dnsmasq -, iproute2 -, flock -, iptables -, gawk -, coreutils -, gnugrep -, gnused -, kmod -, networkmanager -, procps -}: - - -stdenv.mkDerivation rec { - pname = "linux-wifi-hotspot"; - version = "4.7.1"; - - src = fetchFromGitHub { - owner = "lakinduakash"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-yPTnv96n1mV7aN6hf7wSvJIBfT7v9+jjjSoEcpzLRB8="; - }; - - nativeBuildInputs = [ - which - pkg-config - makeWrapper - qrencode - hostapd - ]; - - buildInputs = [ - glib - gtk3 - ]; - - outputs = [ "out" ]; - - postPatch = '' - substituteInPlace ./src/scripts/Makefile \ - --replace "etc" "$out/etc" - substituteInPlace ./src/scripts/wihotspot \ - --replace "/usr" "$out" - substituteInPlace ./src/desktop/wifihotspot.desktop \ - --replace "/usr" "$out" - substituteInPlace ./src/scripts/policies/polkit.policy \ - --replace "/usr" "$out" - ''; - - makeFlags = [ - "PREFIX=${placeholder "out"}" - ]; - - postInstall = '' - wrapProgram $out/bin/create_ap \ - --prefix PATH : ${lib.makeBinPath [ - coreutils - dnsmasq - flock - gawk - getopt - gnugrep - gnused - hostapd - iproute2 - iptables - iw - kmod - networkmanager - procps - which - ]} - - wrapProgram $out/bin/wihotspot-gui \ - --prefix PATH : ${lib.makeBinPath [ iw ]} \ - --prefix PATH : "${placeholder "out"}/bin" - - wrapProgram $out/bin/wihotspot \ - --prefix PATH : ${lib.makeBinPath [ iw ]} \ - --prefix PATH : "${placeholder "out"}/bin" - ''; - - meta = with lib; { - description = "Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface"; - homepage = "https://github.com/lakinduakash/linux-wifi-hotspot"; - license = licenses.bsd2; - maintainers = with maintainers; [ onny ]; - platforms = platforms.unix; - }; - -} |