Skip to content

Commit

Permalink
dependencies: add nix dev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
d4hines committed Feb 13, 2024
1 parent 3c12c33 commit 0fc6732
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.direnv
60 changes: 60 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}: let
pkgs = import nixpkgs {system = "x86_64-linux";};
in
flake-utils.lib.eachDefaultSystem
(system: let
pkgs = import nixpkgs {inherit system;};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
rustc
cargo
cargo-tauri
rustfmt
rust-analyzer
pkg-config
openssl_3
];
};
});
}

0 comments on commit 0fc6732

Please sign in to comment.