From 6e5f0f248fd7031cf7acb6b5a7d36cf9fdff5220 Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Thu, 10 Oct 2024 17:37:28 +0200 Subject: [PATCH 1/3] add a nix shell script for nix users --- shell.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..564ee42 --- /dev/null +++ b/shell.nix @@ -0,0 +1,30 @@ +with import {}; + +mkShell { + + name = "mtkclient"; + + buildInputs = with python3Packages; [ + capstone + colorama + flake8 + fusepy + keystone + keystone-engine + mock + pycryptodome + pycryptodomex + pyserial + pyside6 + pyusb + setuptools + shiboken6 + unicorn + wheel + + # workaround : use qttools in place of pyside6 script + # since they are missing https://github.com/NixOS/nixpkgs/issues/277849 + qt5.qttools + ]; + +} From d48231c99eb9ee449b2a1e488de0515a08fd1d56 Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Thu, 10 Oct 2024 17:42:59 +0200 Subject: [PATCH 2/3] nixfmt shell.nix --- shell.nix | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/shell.nix b/shell.nix index 564ee42..0ae88ec 100644 --- a/shell.nix +++ b/shell.nix @@ -1,30 +1,30 @@ -with import {}; +with import { }; mkShell { name = "mtkclient"; - - buildInputs = with python3Packages; [ - capstone - colorama - flake8 - fusepy - keystone - keystone-engine - mock - pycryptodome - pycryptodomex - pyserial - pyside6 - pyusb - setuptools - shiboken6 - unicorn - wheel - # workaround : use qttools in place of pyside6 script - # since they are missing https://github.com/NixOS/nixpkgs/issues/277849 + buildInputs = with python3Packages; [ + capstone + colorama + flake8 + fusepy + keystone + keystone-engine + mock + pycryptodome + pycryptodomex + pyserial + pyside6 + pyusb + setuptools + shiboken6 + unicorn + wheel + + # workaround : use qttools in place of pyside6 script + # since they are missing https://github.com/NixOS/nixpkgs/issues/277849 qt5.qttools - ]; + ]; } From 78f50d67370db1f9bc72afbc9172f73ad0822601 Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Thu, 10 Oct 2024 19:28:51 +0200 Subject: [PATCH 3/3] remove qttools since lrelease/lupdate doesn't support py files --- shell.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/shell.nix b/shell.nix index 0ae88ec..8d7646a 100644 --- a/shell.nix +++ b/shell.nix @@ -21,10 +21,6 @@ mkShell { shiboken6 unicorn wheel - - # workaround : use qttools in place of pyside6 script - # since they are missing https://github.com/NixOS/nixpkgs/issues/277849 - qt5.qttools ]; }