Skip to content

Commit

Permalink
Configure direnv on misc/
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Jan 8, 2025
1 parent 311f184 commit 635347a
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 1 deletion.
1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
pkgs.bashInteractive
pkgs.cargo-watch
pkgs.graphviz
pkgs.julia-bin
pkgs.lldb_19
pkgs.libiconv
pkgs.samply
Expand Down
3 changes: 3 additions & 0 deletions misc/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# shellcheck shell=bash
source $HOME/.config/direnv/envrc
use flake
61 changes: 61 additions & 0 deletions misc/flake.lock

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

18 changes: 18 additions & 0 deletions misc/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
packages = [
pkgs.bashInteractive
pkgs.graphviz
pkgs.julia-bin
];
};
});
}

0 comments on commit 635347a

Please sign in to comment.