start with chatgpt

This commit is contained in:
Jonas Rabenstein 2026-08-12 01:01:53 +02:00
commit c78520ee65
7 changed files with 2086 additions and 0 deletions

52
flake.nix Normal file
View file

@ -0,0 +1,52 @@
{
description = "borderpoi-rs - GPX administrative border crossing detector";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
rustc
cargo
rustfmt
clippy
];
shellHook = ''
echo "borderpoi-rs development environment"
echo "Rust: $(rustc --version)"
'';
};
packages.default =
pkgs.rustPlatform.buildRustPackage {
pname = "borderpoi-rs";
version = "0.1.0";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
meta = {
description =
"Find administrative border crossings along a GPX track";
mainProgram =
"borderpoi-rs";
};
};
}
);
}