mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
linux-wifi-hotspot: format with nixfmt-rfc-style
move to finalAttrs
This commit is contained in:
parent
b8469764b0
commit
0c019c4ca6
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user