added nix
This commit is contained in:
29
package.nix
Normal file
29
package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user