Skip to content

Commit

Permalink
wifi-password: init at 0.1.0 (NixOS#68373)
Browse files Browse the repository at this point in the history
* wifi-password: init at 0.1.0

* Apply suggestions from code review

Co-Authored-By: symphorien <symphorien@users.noreply.github.com>
  • Loading branch information
2 people authored and zimbatm committed Sep 9, 2019
1 parent 78879ae commit 8b75a0a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgs/os-specific/darwin/wifi-password/default.nix
@@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
version = "0.1.0";
pname = "wifi-password";

src = fetchFromGitHub {
owner = "rauchg";
repo = pname;
rev = version;
sha256 = "0sfvb40h7rz9jzp4l9iji3jg80paklqsbmnk5h7ipsv2xbsplp64";
};

installPhase = ''
mkdir -p $out/bin
cp wifi-password.sh $out/bin/wifi-password
'';

meta = {
homepage = https://github.com/rauchg/wifi-password;
description = "Get the password of the wifi you're on";
platforms = stdenv.lib.platforms.darwin;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.nikitavoloboev ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -24831,4 +24831,6 @@ in

nix-store-gcs-proxy = callPackage ../tools/nix/nix-store-gcs-proxy {};

wifi-password = callPackage ../os-specific/darwin/wifi-password {};

}

0 comments on commit 8b75a0a

Please sign in to comment.