add NordVPN module instead of not working external flake

This commit is contained in:
2025-04-14 10:29:00 +02:00
parent fec6e4eb0f
commit d670e245e4
10 changed files with 158 additions and 63 deletions

View File

@ -8,12 +8,20 @@ let
ps.crcmod
ps.pyserial
]);
src = pkgs.fetchFromGitHub {
owner = "cedricp";
repo = "ddt4all";
rev = "v3.0.4";
sha256 = "sha256-SswaqV2UabVjuNeMTd7K3Vxa77LZKCb/qkgidkaE0R8=";
};
in pkgs.mkShell {
name = "ddt4all-env";
buildInputs = [
pythonWithPkgs
pkgs.qt5.qtbase
src
pkgs.qt5.qtbase
pkgs.qt5.qttools
pkgs.git
pkgs.freetype
@ -32,20 +40,15 @@ in pkgs.mkShell {
];
nativeBuildInputs = [ pkgs.libsForQt5.qt5.wrapQtAppsHook ];
shellHook = ''wrapQtAppsHook'';
runScript = ''
shellHook = ''
mkdir -p $HOME/DDT4ALL
cp -r $src/bin/* $HOME/DDT4ALL
cd $HOME/DDT4ALL
wrapQtAppsHook
if [ ! -d ".venv" ]; then
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
else
source .venv/bin/activate
fi
python3 main.py
python main.py
#exit
'';
}