From e20654782377295517a18bdc1c12a56b4f41f8b9 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Sat, 28 Dec 2024 19:28:24 +0100 Subject: [PATCH] init --- .gitignore | 1 + Cargo.toml | 6 ++++++ flake.nix | 35 +++++++++++++++++++++++++++++++++++ src/main.rs | 3 +++ 4 files changed, 45 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 flake.nix create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..df91ec2 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "pam-honeypot" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3f3d50d --- /dev/null +++ b/flake.nix @@ -0,0 +1,35 @@ +{ + description = "a653rs-router"; + + inputs = { + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { fenix, flake-utils, nixpkgs, ... }: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: + let + pkgs = import nixpkgs { inherit system; }; + rustToolchain = with fenix.packages.${system}; combine [ + latest.rustc + latest.cargo + latest.clippy + latest.rustfmt + latest.rust-src + latest.rust-analyzer + targets.aarch64-unknown-uefi.latest.rust-std + targets.i686-unknown-uefi.latest.rust-std + targets.x86_64-unknown-uefi.latest.rust-std + ]; + in + { + devShells.default = pkgs.mkShell { + packages = [ + rustToolchain + ]; + }; + } + ); +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}