perlPackages.NetAsyncWebSocket: 0.13 -> 0.14 (#352432)
[NixPkgs.git] / pkgs / by-name / ro / rofi-vpn / package.nix
blob120aa9861491945eeee17e489e6c1ed96ad38725
2   stdenv,
3   lib,
4   fetchFromGitLab,
5   makeWrapper,
6   networkmanager,
7   rofi-unwrapped,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "rofi-vpn";
12   version = "0.2.0";
14   src = fetchFromGitLab {
15     owner = "DamienCassou";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "04jcfb2jy8yyrk4mg68krwh3zb5qcyj1aq1bwk96fhybrq9k2hhp";
19   };
21   installPhase = ''
22     runHook preInstall
24     install -D --target-directory=$out/bin/ ./rofi-vpn
26     wrapProgram $out/bin/rofi-vpn \
27       --prefix PATH ":" ${
28         lib.makeBinPath [
29           rofi-unwrapped
30           networkmanager
31         ]
32       }
34     runHook postInstall
35   '';
37   nativeBuildInputs = [ makeWrapper ];
39   meta = with lib; {
40     description = "Rofi-based interface to enable VPN connections with NetworkManager";
41     homepage = "https://gitlab.com/DamienCassou/rofi-vpn";
42     license = licenses.gpl3Plus;
43     maintainers = with maintainers; [ DamienCassou ];
44     platforms = platforms.linux;
45     mainProgram = "rofi-vpn";
46   };