Unverified Commit 0c019c4c authored by John Titor's avatar John Titor
Browse files

linux-wifi-hotspot: format with nixfmt-rfc-style

move to finalAttrs
parent b8469764
Loading
Loading
Loading
Loading
+33 −33
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, which
, pkg-config
, glib
, gtk3
, iw
, makeWrapper
, qrencode
, hostapd
, getopt
, dnsmasq
, iproute2
, flock
, iptables
, gawk
, coreutils
, gnugrep
, gnused
, kmod
, networkmanager
, procps
{
  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 {
stdenv.mkDerivation (finalAttrs: {
  pname = "linux-wifi-hotspot";
  version = "4.7.2";

  src = fetchFromGitHub {
    owner = "lakinduakash";
    repo = pname;
    rev = "v${version}";
    repo = "linux-wifi-hotspot";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-+WHYWQ4EyAt+Kq0LHEgC7Kk5HpIqThz6W3PIdW8Wojk=";
  };

@@ -61,13 +61,12 @@ stdenv.mkDerivation rec {
      --replace "/usr" "$out"
  '';

  makeFlags = [
    "PREFIX=${placeholder "out"}"
  ];
  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  postInstall = ''
    wrapProgram $out/bin/create_ap \
      --prefix PATH : ${lib.makeBinPath [
      --prefix PATH : ${
        lib.makeBinPath [
          coreutils
          dnsmasq
          flock
@@ -83,7 +82,8 @@ stdenv.mkDerivation rec {
          networkmanager
          procps
          which
        ]}
        ]
      }

    wrapProgram $out/bin/wihotspot-gui \
      --prefix PATH : ${lib.makeBinPath [ iw ]} \
@@ -102,4 +102,4 @@ stdenv.mkDerivation rec {
    platforms = platforms.unix;
  };

}
})