Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
994 B
Nix
48 lines
994 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitLab,
|
|
makeWrapper,
|
|
networkmanager,
|
|
rofi-unwrapped,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rofi-vpn";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "DamienCassou";
|
|
repo = "rofi-vpn";
|
|
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;
|
|
mainProgram = "rofi-vpn";
|
|
};
|
|
}
|