start with chatgpt
This commit is contained in:
commit
c78520ee65
7 changed files with 2086 additions and 0 deletions
52
flake.nix
Normal file
52
flake.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue