about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 5893c39..0c58cda 100644
--- a/flake.nix
+++ b/flake.nix
@@ -23,23 +23,23 @@
 
       python = pkgs.python3;
 
+      # Returns an attribute set that can be passed to `buildPythonPackage`.
+      attrs = project.renderers.buildPythonPackage { inherit python; };
     in
     {
       # Build our package using `buildPythonPackage
       packages.x86_64-linux.default =
-        let
-          # Returns an attribute set that can be passed to `buildPythonPackage`.
-          attrs = project.renderers.buildPythonPackage { inherit python; };
-        in
         # Pass attributes to buildPythonPackage.
         # Here is a good spot to add on any missing or custom attributes.
         python.pkgs.buildPythonPackage (attrs // {
-            meta = {
+          meta = {
             description = "Blog backend for blog.node5.net";
             homepage = "https://blog.node5.net/Blog%20meta/";
             changelog = "https://git.node5.net/blog/blog.node5.net_flask/log/";
             mainProgram = "blog-node5";
-            };
+          };
         });
-    };
+    } //  {
+    pythonPath = "${python.pkgs.makePythonPath attrs.dependencies}";
+  };
 }