rofi-vpn: init at 0.2.0
This commit is contained in:
parent
81e24d81e4
commit
54ec249bbe
2 changed files with 42 additions and 0 deletions
40
pkgs/applications/networking/rofi-vpn/default.nix
Normal file
40
pkgs/applications/networking/rofi-vpn/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, makeWrapper
|
||||
, networkmanager
|
||||
, rofi-unwrapped
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rofi-vpn";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "DamienCassou";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "04jcfb2jy8yyrk4mg68krwh3zb5qcyj1aq1bwk96fhybrq9k2hhp";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D --target-directory=$out/bin/ ./rofi-vpn
|
||||
|
||||
wrapProgram $out/bin/rofi-vpn \
|
||||
--prefix PATH ":" ${lib.makeBinPath [ rofi-unwrapped networkmanager ]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rofi-based interface to enable VPN connections with NetworkManager";
|
||||
homepage = "https://gitlab.com/DamienCassou/rofi-vpn";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ DamienCassou ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -25667,6 +25667,8 @@ in
|
|||
|
||||
rofi-power-menu = callPackage ../applications/misc/rofi-power-menu { };
|
||||
|
||||
rofi-vpn = callPackage ../applications/networking/rofi-vpn { };
|
||||
|
||||
ympd = callPackage ../applications/audio/ympd { };
|
||||
|
||||
# a somewhat more maintained fork of ympd
|
||||
|
|
Loading…
Reference in a new issue