added homepage

This commit is contained in:
specCon18 2024-02-14 14:32:54 -05:00
commit 1936d7cab9
13 changed files with 1262 additions and 0 deletions

10
nix/default.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs ? import <nixpkgs> { }, lib }:
pkgs.rustPlatform.buildRustPackage rec {
pname = "sun_server";
version = "1.0.0";
cargoLock.lockFile = ../Cargo.lock;
src = pkgs.lib.cleanSource ../.;
buildInputs = [ ];
# doCheck = false;
}

16
nix/devshell.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
# Get dependencies from the main package
inputsFrom = [ (pkgs.callPackage ./default.nix { }) ];
# Additional tooling
buildInputs = with pkgs; [
cargo
cargo-watch
rustc
rustup
clippy
rust-analyzer
pkg-config
bacon
];
}