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

move to finalAttrs
This commit is contained in:
John Titor
2024-08-01 00:20:02 +05:30
committed by Florian Brandes
parent 568d4c6b20
commit b68a64c6e2

View File

@@ -1,37 +1,37 @@
{ 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;
};
}
})