30 lines
749 B
Nix
30 lines
749 B
Nix
{ pkgs, stdenv, expect, openssl, lib, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nokia-auto-vpn";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ expect openssl ];
|
|
|
|
# nothing to build; we just install scripts
|
|
buildPhase = "true";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
# install your run wrapper and expect script (adjust names if different)
|
|
install -m755 ${./nix.sh} $out/bin/nokia-auto-vpn
|
|
install -m755 ${./vpn.exp} $out/bin/vpn.exp
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Nokia vpn automation wrapper (expect + bash)";
|
|
# homepage = "https://github.com/alfonzso/proxy-manager"; # adjust if needed
|
|
license = licenses.mit; # tweak if needed
|
|
maintainers = with maintainers; [ alfoldi ];
|
|
};
|
|
}
|
|
|