feature: Adds hello world for gui.

This commit is contained in:
greysoh 2024-04-28 14:36:51 -04:00
parent 07dad7c9eb
commit 871fd4c2c5
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571
4 changed files with 41 additions and 1 deletions

18
.gitignore vendored
View file

@ -1,3 +1,21 @@
# Rust
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# NodeJS
# Output
out

8
gui/Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[package]
name = "gui"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
gui/src/main.rs Normal file
View file

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

View file

@ -1,7 +1,18 @@
{
pkgs ? import <nixpkgs> { },
}: pkgs.mkShell {
buildInputs = [ pkgs.nodejs pkgs.openssl pkgs.postgresql pkgs.lsof ];
buildInputs = with pkgs; [
# gui/
cargo
rustc
# api/
nodejs
openssl
postgresql
lsof
];
shellHook = ''
export PRISMA_QUERY_ENGINE_BINARY=${pkgs.prisma-engines}/bin/query-engine
export PRISMA_QUERY_ENGINE_LIBRARY=${pkgs.prisma-engines}/lib/libquery_engine.node