Skip to content

Commit

Permalink
Added impure workaround from devenv
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Jun 26, 2024
1 parent 9248b99 commit 366afe9
Show file tree
Hide file tree
Showing 3 changed files with 689 additions and 68 deletions.
8 changes: 8 additions & 0 deletions flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ ihpFlake:
++ [pkgs.mktemp] # Without this 'make build/bin/RunUnoptimizedProdServer' fails on macOS
;

# Hack to avoid --impure
# See https://github.com/cachix/devenv/commit/cc0944a60978ad7cf74d429d18c2a8065f018545
devenv.root =
let
devenvRootFileContent = builtins.readFile ihpFlake.inputs.devenv-root.outPath;
in
pkgs.lib.mkIf (devenvRootFileContent != "") devenvRootFileContent;

/*
we currently don't use devenv containers, and they break nix flake show
without the proper inputs set
Expand Down
Loading

0 comments on commit 366afe9

Please sign in to comment.