nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 594f82ac8039b9e637501777717f989b8723cbec
parent 7c5743290a2abf8eef18e2d5d53173b8d8aadb21
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 26 May 2020 18:59:52 +0300

Add wireguard-statusbar

Diffstat:
Apkgs/applications/wireguard-statusbar/default.nix | 29+++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/applications/wireguard-statusbar/default.nix b/pkgs/applications/wireguard-statusbar/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, undmg }: + +stdenv.mkDerivation rec { + pname = "wireguard-statusbar"; + version = "1.24"; + + src = fetchurl { + url = "https://github.com/aequitas/macos-menubar-wireguard/releases/download/${version}/WireGuardStatusbar-${version}-117.dmg"; + sha256 = "0zwd4wfxilify660vrcnniyxd0mr1df78n46xbij5mx2nyca2pbj"; + }; + + preferLocalBuild = true; + + buildInputs = [ undmg ]; + + installPhase = '' + mkdir -p "$out/Applications/WireGuardStatusbar.app" + cp -R . "$out/Applications/WireGuardStatusbar.app" + ''; + + meta = with stdenv.lib; { + description = "macOS menubar icon for WireGuard/wg-quick"; + homepage = "https://github.com/aequitas/macos-menubar-wireguard"; + license = licenses.gpl3; + maintainers = with maintainers; [ sikmir ]; + platforms = with platforms; darwin; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -24,6 +24,7 @@ lib.makeScope newScope ( redict = libsForQt5.callPackage ./applications/redict { inherit sources; }; + wireguard-statusbar = callPackage ./applications/wireguard-statusbar {}; ### BUILD SUPPORT