-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from Sntx626/main
Introduce nix tooling for reproducable dev envirionments
- Loading branch information
Showing
3 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
description = "A multi-platform desktop application to evaluate and compare LLM models, written in Rust and React."; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = | ||
{ nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachSystem | ||
[ | ||
"aarch64-linux" | ||
"x86_64-linux" | ||
] | ||
( | ||
system: | ||
let | ||
pkgs = import nixpkgs { inherit system; }; | ||
in | ||
{ | ||
devShells.default = import ./nix/shell.nix { inherit pkgs; }; | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
pkgs ? import <nixpkgs> { }, | ||
}: | ||
let | ||
inherit (pkgs) lib; | ||
in | ||
pkgs.mkShell rec { | ||
CARGO_PROFILE_RELEASE_DEBUG = true; | ||
LD_LIBRARY_PATH = lib.makeLibraryPath nativeBuildInputs; | ||
RUST_BACKTRACE = "full"; | ||
|
||
nativeBuildInputs = with pkgs; [ | ||
bun | ||
cargo | ||
gcc | ||
gnome.libsoup | ||
nixfmt-rfc-style | ||
pkg-config | ||
rustc | ||
webkitgtk | ||
]; | ||
} |