Merge pull request #129720 from DamienCassou/add-rofi-vpn

rofi-vpn: init at 0.2.0
This commit is contained in:
Damien Cassou 2021-07-13 20:36:02 +02:00 committed by GitHub
commit d91ff7a630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View 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;
};
}

View file

@ -25677,6 +25677,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