Skip to content

Commit

Permalink
Update .envrc/flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Dec 7, 2024
1 parent bd400e8 commit 5edd037
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ tmp/
nixexprs.tar.bz2
result
gcroots

.direnv
6 changes: 5 additions & 1 deletion tests/.envrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@

export NIX_PATH=nixpkgs=$(nix run .#nixpkgsPath)
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
fi

use flake
6 changes: 6 additions & 0 deletions tests/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
tests = pkgs.haskell.packages.ghc965.callPackage ./tests.nix {};
in
rec {
devShells = {
default = pkgs.mkShell {
NIX_PATH = "nixpkgs=${pkgs.path}";
};
};

packages = {
inherit tests;
inherit (pkgs) cabal2nix;
Expand Down

0 comments on commit 5edd037

Please sign in to comment.