|
@@ -9,7 +9,6 @@
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
let
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
- python = pkgs.python3.withPackages (ps: with ps; []);
|
|
|
arklog = pkgs.python3Packages.buildPythonPackage rec {
|
|
|
pname = "arklog";
|
|
|
version = "0.5.1";
|
|
@@ -32,7 +31,7 @@
|
|
|
};
|
|
|
in {
|
|
|
packages = rec {
|
|
|
- spendpoint = pkgs.python3Packages.buildPythonApplication {
|
|
|
+ spendpoint = pkgs.python3Packages.buildPythonPackage {
|
|
|
pname = "spendpoint";
|
|
|
version = "0.4.0";
|
|
|
format = "pyproject";
|
|
@@ -72,11 +71,11 @@
|
|
|
};
|
|
|
|
|
|
# https://discourse.nixos.org/t/basic-flake-run-existing-python-bash-script/19886/2
|
|
|
- server = pkgs.writeScriptBin "run-python" ''
|
|
|
+ server = let python = pkgs.python3.withPackages (ps: with ps; [ spendpoint ]); in pkgs.writeScriptBin "run-python" ''
|
|
|
${python}/bin/python -m spendpoint
|
|
|
'';
|
|
|
|
|
|
- launchScript = pkgs.writeTextFile {
|
|
|
+ launchScript = let python = pkgs.python3.withPackages (ps: with ps; [ spendpoint ]); in pkgs.writeTextFile {
|
|
|
name = "run.sh";
|
|
|
text = ''${python}/bin/python -m spendpoint'';
|
|
|
executable = true;
|