Initialize the falling-sand project

This commit is contained in:
Savanni D'Gerinel 2024-02-03 15:32:56 -05:00
parent 772188b470
commit b414f3e0ea
6 changed files with 45 additions and 0 deletions

4
Cargo.lock generated
View File

@ -861,6 +861,10 @@ dependencies = [
"zune-inflate", "zune-inflate",
] ]
[[package]]
name = "falling-sand"
version = "0.1.0"
[[package]] [[package]]
name = "fastrand" name = "fastrand"
version = "2.0.1" version = "2.0.1"

View File

@ -115,6 +115,16 @@ rec {
# File a bug if you depend on any for non-debug work! # File a bug if you depend on any for non-debug work!
debug = internal.debugCrate { inherit packageId; }; 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 { "file-service" = rec {
packageId = "file-service"; packageId = "file-service";
build = internal.buildRustCrateWithFeatures { 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 { "fastrand" = rec {
crateName = "fastrand"; crateName = "fastrand";

View File

@ -9,6 +9,7 @@ members = [
"cyberpunk-splash", "cyberpunk-splash",
"dashboard", "dashboard",
"emseries", "emseries",
"falling-sand",
"file-service", "file-service",
"fitnesstrax/core", "fitnesstrax/core",
"fitnesstrax/app", "fitnesstrax/app",

8
falling-sand/Cargo.toml Normal file
View File

@ -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]

3
falling-sand/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

View File

@ -81,6 +81,7 @@
dashboard = cargo_nix.workspaceMembers.dashboard.build; dashboard = cargo_nix.workspaceMembers.dashboard.build;
file-service = cargo_nix.workspaceMembers.file-service.build; file-service = cargo_nix.workspaceMembers.file-service.build;
fitnesstrax = cargo_nix.workspaceMembers.fitnesstrax.build; fitnesstrax = cargo_nix.workspaceMembers.fitnesstrax.build;
falling-sand = cargo_nix.workspaceMembers.falling-sand.build;
all = pkgs.symlinkJoin { all = pkgs.symlinkJoin {
name = "all"; name = "all";