diff --git a/Cargo.lock b/Cargo.lock index f1f2ffb..f4a56e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -861,6 +861,10 @@ dependencies = [ "zune-inflate", ] +[[package]] +name = "falling-sand" +version = "0.1.0" + [[package]] name = "fastrand" version = "2.0.1" diff --git a/Cargo.nix b/Cargo.nix index 80c4af3..3658df2 100644 --- a/Cargo.nix +++ b/Cargo.nix @@ -115,6 +115,16 @@ rec { # File a bug if you depend on any for non-debug work! debug = internal.debugCrate { inherit packageId; }; }; + "falling-sand" = rec { + packageId = "falling-sand"; + build = internal.buildRustCrateWithFeatures { + packageId = "falling-sand"; + }; + + # Debug support which might change between releases. + # File a bug if you depend on any for non-debug work! + debug = internal.debugCrate { inherit packageId; }; + }; "file-service" = rec { packageId = "file-service"; build = internal.buildRustCrateWithFeatures { @@ -2754,6 +2764,24 @@ rec { } ]; + }; + "falling-sand" = rec { + crateName = "falling-sand"; + version = "0.1.0"; + edition = "2021"; + crateBin = [ + { + name = "falling-sand"; + path = "src/main.rs"; + requiredFeatures = [ ]; + } + ]; + # We can't filter paths with references in Nix 2.4 + # See https://github.com/NixOS/nix/issues/5410 + src = if ((lib.versionOlder builtins.nixVersion "2.4pre20211007") || (lib.versionOlder "2.5" builtins.nixVersion )) + then lib.cleanSourceWith { filter = sourceFilter; src = ./falling-sand; } + else ./falling-sand; + }; "fastrand" = rec { crateName = "fastrand"; diff --git a/Cargo.toml b/Cargo.toml index bf860b2..c011da6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ members = [ "cyberpunk-splash", "dashboard", "emseries", + "falling-sand", "file-service", "fitnesstrax/core", "fitnesstrax/app", diff --git a/falling-sand/Cargo.toml b/falling-sand/Cargo.toml new file mode 100644 index 0000000..9fc91e6 --- /dev/null +++ b/falling-sand/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "falling-sand" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/falling-sand/src/main.rs b/falling-sand/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/falling-sand/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/flake.nix b/flake.nix index 91bc76d..fb1f343 100644 --- a/flake.nix +++ b/flake.nix @@ -81,6 +81,7 @@ dashboard = cargo_nix.workspaceMembers.dashboard.build; file-service = cargo_nix.workspaceMembers.file-service.build; fitnesstrax = cargo_nix.workspaceMembers.fitnesstrax.build; + falling-sand = cargo_nix.workspaceMembers.falling-sand.build; all = pkgs.symlinkJoin { name = "all";