.
This commit is contained in:
parent
0c7d1d1cb7
commit
3efe1dad0c
1 changed files with 83 additions and 86 deletions
19
flake.nix
19
flake.nix
|
|
@ -5,14 +5,11 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url =
|
nixpkgs.url =
|
||||||
"github:nixos/nixpkgs/nixos-unstable"; # Specify the version or channel as needed
|
"github:nixos/nixpkgs/nixos-unstable"; # Specify the version or channel as needed
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, ... }:
|
outputs = { self, nixpkgs, ... }: {
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
packages.x86_64-linux.default =
|
||||||
let pkgs = nixpkgs.legacyPackages.${system};
|
nixpkgs.python3.pkgs.buildPythonApplication rec {
|
||||||
in {
|
|
||||||
packages.default = pkgs.python3.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "calDAVtoCSV";
|
pname = "calDAVtoCSV";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
@ -22,18 +19,17 @@
|
||||||
# rev = "ca6bdb889085893cd4494cd1612a00f8e164ffac";
|
# 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 = {
|
meta = {
|
||||||
description =
|
description =
|
||||||
"middleman program between my radicale server and my esp32";
|
"middleman program between my radicale server and my esp32";
|
||||||
license = pkgs.lib.licenses.mit;
|
license = nixpkgs.lib.licenses.mit;
|
||||||
maintainers = with pkgs.lib.maintainers; [ stuce-bot ];
|
maintainers = with nixpkgs.lib.maintainers; [ stuce-bot ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
|
||||||
nixosModules.default = { config, lib, pkgs, ... }:
|
nixosModules.default = { config, lib, pkgs, ... }:
|
||||||
let cfg = config.services.deafault;
|
let cfg = config.services.deafault;
|
||||||
in {
|
in {
|
||||||
|
|
@ -100,4 +96,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue