Initial commit

This commit is contained in:
Jonas Heinrich 2024-11-09 09:59:47 +01:00
commit 1c5b52eab0
3 changed files with 121 additions and 0 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.05";
# Required for multi platform support
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
start =
pkgs.writeShellScriptBin "start" ''
set -e
${pkgs.python3}/bin/python eintopf-sync.py
'';
in
{
devShell = pkgs.mkShell {
packages = with pkgs; with python3Packages; [
python3
requests
];
};
packages = { inherit start; };
defaultPackage = start;
});
}