depot/third_party/nixpkgs/pkgs/os-specific/darwin/wifi-password/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

26 lines
642 B
Nix

{ 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 ];
};
}