Files
torana/flake.nix
Amneesh Singh a307dc6c78 initial commit
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-01-21 13:31:10 +05:30

44 lines
904 B
Nix

{
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;
}
);
}