2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-09-09 23:40:05 +01:00
|
|
|
|
|
|
|
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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/rauchg/wifi-password";
|
2019-09-09 23:40:05 +01:00
|
|
|
description = "Get the password of the wifi you're on";
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.darwin;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.nikitavoloboev ];
|
2019-09-09 23:40:05 +01:00
|
|
|
};
|
|
|
|
}
|