Skip to content

Commit

Permalink
Set a working NIX_PATH in .envrc
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Aug 9, 2024
1 parent c050020 commit 0f04f0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
# fi

# use_flake

export NIX_PATH=nixpkgs=$(nix run .#nixpkgsPath)
8 changes: 4 additions & 4 deletions flake.lock

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

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
inputs.nixpkgsMaster.url = "github:NixOS/nixpkgs/master";
inputs.flake-utils.url = "github:numtide/flake-utils";

Expand All @@ -24,6 +24,8 @@
export NIX_PATH=nixpkgs=${pkgs.path}
${pkgs.stack}/bin/stack test
'';

nixpkgsPath = pkgs.writeShellScriptBin "nixpkgsPath.sh" "echo -n ${pkgs.path}";
};

devShells.default = pkgs.mkShell {
Expand Down

0 comments on commit 0f04f0b

Please sign in to comment.