Skip to content

Commit

Permalink
chore(nix): update dev flake
Browse files Browse the repository at this point in the history
  • Loading branch information
evlli committed Mar 27, 2024
1 parent 4018e55 commit 6df3d7b
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 5 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
130 changes: 130 additions & 0 deletions flake.lock

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

40 changes: 40 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
description = "A devShell example";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
openssl
pkg-config
eza
fd
rust-bin.beta.latest.complete
clippy
rust-analyzer
perf-tools
linuxPackages_latest.perf
];

shellHook = ''
alias ls=eza
alias find=fd
'';
};
}
);
}
5 changes: 0 additions & 5 deletions shell.nix

This file was deleted.

0 comments on commit 6df3d7b

Please sign in to comment.