added nix

This commit is contained in:
Zsolt Alföldi
2025-10-26 02:30:16 +02:00
parent 85e4396dd1
commit 2aed3ade72
9 changed files with 131 additions and 9 deletions

29
package.nix Normal file
View File

@@ -0,0 +1,29 @@
{ 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 ];
};
}