Skip to content

Commit

Permalink
Nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
j-chmielewski committed Oct 5, 2024
1 parent ebb7b34 commit f8ceec5
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

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

26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "Rust development flake";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
utils.url = "github:numtide/flake-utils";
};

outputs = { nixpkgs, utils, ... }:
utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
pkg-config
openssl
protobuf
sqlx-cli
cargo
rustc
rust-analyzer
clippy
];
};
});
}

0 comments on commit f8ceec5

Please sign in to comment.