mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
8b75a0a25f
* wifi-password: init at 0.1.0 * Apply suggestions from code review Co-Authored-By: symphorien <symphorien@users.noreply.github.com>
27 lines
640 B
Nix
27 lines
640 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 ];
|
|
};
|
|
}
|