summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-11-21 13:45:58 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-11-21 17:07:36 -0300
commitd3a670eb7ebbdbd5728a6adcfe451aaea271b57f (patch)
tree817757c04d190e95e00207dd11376e81b9eb0875 /pkgs/tools
parentde5ed8189b421190e407c83626f3e06802324604 (diff)
qmk: cosmetic cleanups
`fetchpatch` and `writeText` are not needed.
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/qmk/default.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/tools/misc/qmk/default.nix b/pkgs/tools/misc/qmk/default.nix
index ef25a7361c26..5067e1e0fabe 100644
--- a/pkgs/tools/misc/qmk/default.nix
+++ b/pkgs/tools/misc/qmk/default.nix
@@ -1,16 +1,12 @@
-{ lib, python3, fetchpatch, writeText }:
+{ lib
+, python3
+}:
-let
- inherit (python3.pkgs) buildPythonApplication fetchPypi;
- setuppy = writeText "setup.py" ''
- from setuptools import setup
- setup()
- '';
-in buildPythonApplication rec {
+python3.pkgs.buildPythonApplication rec {
pname = "qmk";
version = "1.0.0";
- src = fetchPypi {
+ src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-2mLuxzxFSMw3sLm+OTcgLcOjAdwvJmNhDsynUaYQ+co=";
};
@@ -36,8 +32,12 @@ in buildPythonApplication rec {
pyusb
];
+ # buildPythonApplication requires setup.py; the setup.py file crafted below
+ # acts as a wrapper to setup.cfg
postConfigure = ''
- cp ${setuppy} setup.py
+ touch setup.py
+ echo "from setuptools import setup" >> setup.py
+ echo "setup()" >> setup.py
'';
# no tests implemented