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
parent b8469764b0
commit 0c019c4ca6
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

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;
};
}
})