depot/third_party/nixpkgs/pkgs/os-specific/darwin/wifi-password/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

26 lines
626 B
Nix

{ lib, 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 = lib.platforms.darwin;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.nikitavoloboev ];
};
}