mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
can I at least change the project name? kthxbye
This commit is contained in:
parent
83a5ff3909
commit
75ff4edeed
3 changed files with 12 additions and 12 deletions
12
flake.nix
12
flake.nix
|
|
@ -86,13 +86,13 @@
|
|||
# Package a virtual environment as our main application.
|
||||
#
|
||||
# Enable no optional dependencies for production build.
|
||||
packages.x86_64-linux.default = pythonSet.mkVirtualEnv "hello-world-env" workspace.deps.default;
|
||||
packages.x86_64-linux.default = pythonSet.mkVirtualEnv "lego-monitoring-env" workspace.deps.default;
|
||||
|
||||
# Make hello runnable with `nix run`
|
||||
# Make service runnable with `nix run`
|
||||
apps.x86_64-linux = {
|
||||
default = {
|
||||
type = "app";
|
||||
program = "${self.packages.x86_64-linux.default}/bin/hello";
|
||||
program = "${self.packages.x86_64-linux.default}/bin/service";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
|
||||
# Apply fixups for building an editable package of your workspace packages
|
||||
(final: prev: {
|
||||
hello-world = prev.hello-world.overrideAttrs (old: {
|
||||
lego-monitoring = prev.lego-monitoring.overrideAttrs (old: {
|
||||
# It's a good idea to filter the sources going into an editable build
|
||||
# so the editable package doesn't have to be rebuilt on every change.
|
||||
src = lib.fileset.toSource {
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
fileset = lib.fileset.unions [
|
||||
(old.src + "/pyproject.toml")
|
||||
(old.src + "/README.md")
|
||||
(old.src + "/src/hello_world/__init__.py")
|
||||
(old.src + "/src/lego_monitoring/__init__.py")
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -179,7 +179,7 @@
|
|||
# Build virtual environment, with local packages being editable.
|
||||
#
|
||||
# Enable all optional dependencies for development.
|
||||
virtualenv = editablePythonSet.mkVirtualEnv "hello-world-dev-env" workspace.deps.all;
|
||||
virtualenv = editablePythonSet.mkVirtualEnv "lego-monitoring-dev-env" workspace.deps.all;
|
||||
|
||||
in
|
||||
pkgs.mkShell {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue