initial commit

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-01-21 08:33:19 +05:30
commit a307dc6c78
10 changed files with 2259 additions and 0 deletions

43
flake.nix Normal file
View File

@@ -0,0 +1,43 @@
{
description = "Torana danmaku engine";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/release-22.11;
rust-overlay.url = github:oxalica/rust-overlay;
utils.url = github:numtide/flake-utils;
};
outputs = {
self,
nixpkgs,
utils,
rust-overlay,
}:
utils.lib.eachDefaultSystem
(
system: let
overlays = [rust-overlay.overlays.default];
pkgs = import nixpkgs {
inherit system overlays;
};
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
in rec {
devShell = with pkgs;
mkShell {
nativeBuildInputs = [
cmake
openssl
fontconfig
pkg-config
llvmPackages.lld
rust-analyzer
toolchain
];
};
formatter = pkgs.alejandra;
}
);
}