Compare commits
No commits in common. "a21fc048ad7fd54947ee62c3d8e2d5c4371121dd" and "aa076312966754b6af77b713448c47962471109f" have entirely different histories.
a21fc048ad
...
aa07631296
@ -4,4 +4,4 @@
|
||||
<img src="assets/logo.svg" alt="logo" width="200"/>
|
||||
|
||||
### What is this?
|
||||
The aim of this project is to provide a [Desmos](https://www.desmos.com/)-like graphing experience. This project is written in [Rust](https://www.rust-lang.org/) and takes advantage of [egui](https://github.com/emilk/egui) as it's graphical backend. Meaning that this program can be compiled targeting either the web, [such as here](https://graphing.gardling.com), as well as a native application.
|
||||
The aim of this project is to provide a [Desmos](https://www.desmos.com/)-like graphing experience. This project is written in [Rust](https://www.rust-lang.org/) and takes advantage of [egui](https://github.com/emilk/egui) as it's graphical backend. Meaning that this program can be compiled targeting either the web, [such as here](https://titaniumtown.github.io), as well as a native application.
|
||||
|
||||
20
flake.lock
generated
20
flake.lock
generated
@ -38,7 +38,8 @@
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"rust-overlay": "rust-overlay"
|
||||
"rust-overlay": "rust-overlay",
|
||||
"simon-egui": "simon-egui"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
@ -61,6 +62,23 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"simon-egui": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1764730109,
|
||||
"narHash": "sha256-vNETC0oq6tKJKF8KOGQKKIWRom38m0RwGgi3MPBrRx8=",
|
||||
"owner": "Titaniumtown",
|
||||
"repo": "egui",
|
||||
"rev": "b63c21d70150f1b414370f0f9a8af56e886662f4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Titaniumtown",
|
||||
"repo": "egui",
|
||||
"rev": "b63c21d70150f1b414370f0f9a8af56e886662f4",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
|
||||
23
flake.nix
23
flake.nix
@ -8,6 +8,10 @@
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
simon-egui = {
|
||||
url = "github:Titaniumtown/egui/b63c21d70150f1b414370f0f9a8af56e886662f4";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
@ -16,6 +20,7 @@
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
rust-overlay,
|
||||
simon-egui,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
@ -35,12 +40,28 @@
|
||||
rustc = rustToolchain;
|
||||
};
|
||||
|
||||
# Create a combined source with the main project and dependencies
|
||||
combinedSrc = pkgs.stdenv.mkDerivation {
|
||||
name = "ytbn-combined-src";
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/integral_site_rust
|
||||
mkdir -p $out/simon-egui
|
||||
|
||||
cp -r ${./.}/* $out/integral_site_rust/
|
||||
cp -r ${simon-egui}/* $out/simon-egui/
|
||||
|
||||
chmod -R u+w $out
|
||||
'';
|
||||
};
|
||||
|
||||
# Build the wasm library using rustPlatform
|
||||
wasmLib = rustPlatform.buildRustPackage {
|
||||
pname = "ytbn-graphing-software-wasm";
|
||||
version = "0.1.0";
|
||||
|
||||
src = "${./.}";
|
||||
src = combinedSrc;
|
||||
sourceRoot = "${combinedSrc.name}/integral_site_rust";
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user