push-status: Add uptime-kuma-api overrides

This commit is contained in:
Steffen Vogel 2024-03-22 00:23:45 +01:00
parent 2403d89a30
commit b95b85d50c

View file

@ -10,24 +10,37 @@
};
};
outputs = {
outputs = inputs @ {
self,
nixpkgs,
flake-utils,
poetry2nix,
}:
flake-utils.lib.eachDefaultSystem (system: let
# see https://github.com/nix-community/poetry2nix/tree/master#api for more functions and examples.
pkgs = nixpkgs.legacyPackages.${system};
inherit (poetry2nix.lib.mkPoetry2Nix {inherit pkgs;}) mkPoetryApplication;
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix {inherit pkgs;};
inherit (poetry2nix) mkPoetryApplication defaultPoetryOverrides;
in {
packages = {
push-status = mkPoetryApplication {projectDir = self;};
default = self.packages.${system}.myapp;
push-status = mkPoetryApplication {
projectDir = self;
overrides =
defaultPoetryOverrides.extend
(self: super: {
uptime-kuma-api =
super.uptime-kuma-api.overridePythonAttrs
(
old: {
buildInputs = (old.buildInputs or []) ++ [super.setuptools];
}
);
});
};
default = self.packages.${system}.push-status;
};
devShells.default = pkgs.mkShell {
inputsFrom = [self.packages.${system}.myapp];
inputsFrom = [self.packages.${system}.push-status];
packages = [pkgs.poetry];
};
});