Skip to content

Commit

Permalink
Add nix environment
Browse files Browse the repository at this point in the history
  • Loading branch information
RainingComputers committed Jan 8, 2025
1 parent 3ef8614 commit 0746f72
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="
fi

use nix
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,7 @@ build-name.txt
*.log

# temporary scripts
gh-md-toc
gh-md-toc

# direnv
.direnv/
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ Download app image from [releases](https://github.com/RainingComputers/ShnooTalk
Download the source from latest [release](https://github.com/RainingComputers/ShnooTalk/releases)

```
sudo apt install llvm-12 llvm-12-dev
make build
./ci/Linux/build.sh llvmorg-12.0.1/clang+llvm-12.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz
sudo make install
```

Expand Down
19 changes: 19 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.11";
pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShellNoCC {
packages = with pkgs; [
llvmPackages_12.libllvm
ccache
python39
lcov
clang
gcc
];

shellHook = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`llvm-config --libdir`
'';
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.1-alpha
0.3.2-alpha

0 comments on commit 0746f72

Please sign in to comment.