12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-DPMCwyKqGJrav0wASBky9bS1bvJ3xaGsDzsk1bKaH1U=";
23 cargoHash = "sha256-TL7ZsRbpRdYymJHuoCUCqe/U3Vacb9mtKFh85IOl+PA=";
25 nativeBuildInputs = [ makeWrapper ];
26 buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
29 wrapProgram "$out/bin/ifwifi" \
32 # `ifwifi` runtime dep
34 # `wifiscanner` crate's runtime deps
35 ++ (lib.optional stdenv.hostPlatform.isLinux iw)
36 # ++ (lib.optional stdenv.hostPlatform.isDarwin airport) # airport isn't packaged
44 description = "Simple wrapper over nmcli using wifiscanner made in rust";
45 mainProgram = "ifwifi";
47 In the author's words:
49 I felt bothered because I never remember the long and tedious command
50 line to setup my wifi interface. So, I wanted to develop something
51 using rust to simplify the usage of nmcli, and I met the wifiscanner
52 project that gave me almost everything I wanted to create this tool.
54 homepage = "https://github.com/araujobsd/ifwifi";
55 license = with licenses; [ bsd2 ];
56 maintainers = with maintainers; [ blaggacao ];
57 # networkmanager doesn't work on darwin
58 # even though the `wifiscanner` crate would work
59 platforms = with platforms; linux; # ++ darwin;