-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sumner Evans <me@sumnerevans.com>
- Loading branch information
1 parent
c345091
commit fb18dce
Showing
4 changed files
with
99 additions
and
21 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
if [[ $(uname -s) == "Linux" && $(uname --kernel-version | grep "NixOS") ]]; then | ||
echo "The best OS (NixOS) has been detected. Using nice tools." | ||
use nix | ||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.0; then | ||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.0/direnvrc" "sha256-21TMnI2xWX7HkSTjFFri2UaohXVj854mgvWapWrxRXg=" | ||
fi | ||
|
||
use flake | ||
fi |
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,33 @@ | ||
{ | ||
description = "mautrix-signal development environment"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
(flake-utils.lib.eachDefaultSystem (system: | ||
let pkgs = import nixpkgs { inherit system; }; | ||
in { | ||
devShells.default = pkgs.mkShell { | ||
LIBCLANG_PATH = "${pkgs.llvmPackages_11.libclang.lib}/lib"; | ||
|
||
buildInputs = with pkgs; [ | ||
clang | ||
cmake | ||
gnumake | ||
protobuf | ||
rust-cbindgen | ||
rustup | ||
olm | ||
|
||
go_1_20 | ||
go-tools | ||
gotools | ||
|
||
pre-commit | ||
]; | ||
}; | ||
})); | ||
} |