diff options
| Commit | f7f8447a7a57c19bcbd4d48ca72a9963298436cc (patch) | |
|---|---|---|
| Author | 2024-12-07 14:44:27 +0200 | |
| Committer | 2024-12-07 14:44:27 +0200 | |
| Files | 230a0b163208993c95894ebd87ae086fe25ec93e | |
| tonkobali-f7f8447a7a57c19bcbd4d48ca72a9963298436cc.tar tonkobali-f7f8447a7a57c19bcbd4d48ca72a9963298436cc.tar.gz tonkobali-f7f8447a7a57c19bcbd4d48ca72a9963298436cc.zip | ||
| Parent | 6fd75732d598d50d7bb56a16e03ffd2cd2dfb637 (diff) | |
feat!: Initial rust structure and flake
8 files changed, 85 insertions, 0 deletions
| -rw-r--r-- | Cargo.toml | 6 | ||||
| -rw-r--r-- | bombali/Cargo.toml | 6 | ||||
| -rw-r--r-- | bombali/src/main.rs | 3 | ||||
| -rw-r--r-- | flake.lock | 27 | ||||
| -rw-r--r-- | flake.nix | 31 | ||||
| -rw-r--r-- | src/main.rs | 3 | ||||
| -rw-r--r-- | tonkolili/Cargo.toml | 6 | ||||
| -rw-r--r-- | tonkolili/src/main.rs | 3 |
diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..26c9380 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "tonkobali" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/bombali/Cargo.toml b/bombali/Cargo.toml new file mode 100644 index 0000000..1eb6bed --- /dev/null +++ b/bombali/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "bombali" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/bombali/src/main.rs b/bombali/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/bombali/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..faf94c2 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1733412085, + "narHash": "sha256-FillH0qdWDt/nlO6ED7h4cmN+G9uXwGjwmCnHs0QVYM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "4dc2fc4e62dbf62b84132fe526356fbac7b03541", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f6e5e01 --- /dev/null +++ b/flake.nix @@ -0,0 +1,31 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; + }; + + outputs = { nixpkgs, ... }: + let + # Taken from lib.systems.doubles.all + systems = [ "x86_64-linux" "aarch64-linux" ]; + + inherit (nixpkgs) lib; + + forAllSystems = config: + lib.foldl + lib.recursiveUpdate + {} + (builtins.map + (system: + builtins.mapAttrs + (_: value: { ${system} = value; }) + (config (import nixpkgs { inherit system; }))) + systems); + + in forAllSystems (pkgs: { + devShells.default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + cargo + ]; + }; + }); +} 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!"); +} diff --git a/tonkolili/Cargo.toml b/tonkolili/Cargo.toml new file mode 100644 index 0000000..b09ed7c --- /dev/null +++ b/tonkolili/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "tonkolili" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/tonkolili/src/main.rs b/tonkolili/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/tonkolili/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} |
