This commit is contained in:
Stuce 2025-11-16 12:26:13 +01:00
parent 0c7d1d1cb7
commit 3efe1dad0c

View file

@ -5,14 +5,11 @@
inputs = {
nixpkgs.url =
"github:nixos/nixpkgs/nixos-unstable"; # Specify the version or channel as needed
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages.default = pkgs.python3.pkgs.buildPythonApplication rec {
outputs = { self, nixpkgs, ... }: {
packages.x86_64-linux.default =
nixpkgs.python3.pkgs.buildPythonApplication rec {
pname = "calDAVtoCSV";
version = "0.1.0";
pyproject = true;
@ -22,18 +19,17 @@
# rev = "ca6bdb889085893cd4494cd1612a00f8e164ffac";
};
build-system = with pkgs.python3.pkgs; [ setuptools ];
build-system = with nixpkgs.python3.pkgs; [ setuptools ];
dependencies = with pkgs.python3.pkgs; [ caldav flask gunicorn ];
dependencies = with nixpkgs.python3.pkgs; [ caldav flask gunicorn ];
meta = {
description =
"middleman program between my radicale server and my esp32";
license = pkgs.lib.licenses.mit;
maintainers = with pkgs.lib.maintainers; [ stuce-bot ];
license = nixpkgs.lib.licenses.mit;
maintainers = with nixpkgs.lib.maintainers; [ stuce-bot ];
};
};
});
nixosModules.default = { config, lib, pkgs, ... }:
let cfg = config.services.deafault;
in {
@ -100,4 +96,5 @@
};
};
};
};
}