feat: add nix build infrastructure

This commit is contained in:
Kiana Sheibani 2024-10-14 17:55:47 -04:00
parent 4e42390a82
commit 9879184d47
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
6 changed files with 329 additions and 2 deletions

20
flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
description = "Raytracing renderer written in Rust";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
nci.url = "github:yusdacra/nix-cargo-integration";
nci.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ flake-parts, systems, nci, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import systems;
imports = [ nci.flakeModule ./module.nix ];
};
}