Flowtrack: private period tracker with cycle predictions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
94372c6abc
19 changed files with 2166 additions and 0 deletions
38
flake.nix
Normal file
38
flake.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
description = "Private, self-hosted period tracker with cycle predictions";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
default = pkgs.callPackage ./package.nix { };
|
||||
flowtrack = self.packages.${system}.default;
|
||||
});
|
||||
|
||||
nixosModules.default = import ./module.nix self;
|
||||
nixosModules.flowtrack = self.nixosModules.default;
|
||||
|
||||
checks = forAllSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
inherit (self.packages.${system}) default;
|
||||
tests = pkgs.runCommand "flowtrack-tests" { nativeBuildInputs = [ pkgs.python3 pkgs.nodejs ]; } ''
|
||||
cp -r ${self} source
|
||||
chmod -R u+w source
|
||||
cd source
|
||||
python3 -m unittest discover -s tests -v
|
||||
python3 -m py_compile app.py
|
||||
node --check static/app.js
|
||||
node --check static/cycle.js
|
||||
node tests/test_cycle.js
|
||||
touch $out
|
||||
'';
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue