changed binary name

This commit is contained in:
Kristian Krsnik 2023-10-13 13:50:05 +02:00
parent 7b4a7c6f6d
commit 115aa579ba
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
3 changed files with 3 additions and 11 deletions

View File

@ -21,14 +21,6 @@
default = pkgs.${system}.poetry2nix.mkPoetryApplication {projectDir = self;}; default = pkgs.${system}.poetry2nix.mkPoetryApplication {projectDir = self;};
}); });
# `nix run`
apps = forAllSystems (system: {
default = {
program = "${self.packages.${system}.default}/bin/dyn_gandi";
type = "app";
};
});
# `nix develop` # `nix develop`
devShells = forAllSystems (system: { devShells = forAllSystems (system: {
default = pkgs.${system}.mkShellNoCC { default = pkgs.${system}.mkShellNoCC {

View File

@ -46,7 +46,7 @@ in {
systemd.services.dyn-gandi = mkIf (cfg.timer systemd.services.dyn-gandi = mkIf (cfg.timer
!= null) { != null) {
script = "${package}/bin/dyn_gandi --config ${configFile}"; script = "${package}/bin/dyn-gandi --config ${configFile}";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";

View File

@ -4,14 +4,14 @@ version = "0.1.0"
description = "A DNS updater" description = "A DNS updater"
authors = ["Kristian Krsnik <git@krsnik.at>"] authors = ["Kristian Krsnik <git@krsnik.at>"]
readme = "README.md" readme = "README.md"
packages = [{include = "dyn_gandi"}] packages = [{ include = "dyn_gandi" }]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.10" python = "^3.10"
requests = "2.29.0" requests = "2.29.0"
[tool.poetry.scripts] [tool.poetry.scripts]
dyn_gandi = "dyn_gandi.main:main" dyn-gandi = "dyn_gandi.main:main"
[build-system] [build-system]
requires = ["poetry-core"] requires = ["poetry-core"]