Skip to content

Commit

Permalink
flake: simplify repl app
Browse files Browse the repository at this point in the history
  • Loading branch information
codgician committed May 28, 2024
1 parent 6c54986 commit 264200b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@
apps = (builtins.mapAttrs (k: v: mkSlideApp v) packages) // {
repl = inputs.flake-utils.lib.mkApp {
drv = pkgs.writeShellScriptBin "repl" ''
confnix=$(mktemp)
echo "builtins.getFlake (toString $(git rev-parse --show-toplevel))" > $confnix
trap "rm $confnix" EXIT
nix repl $confnix
nix repl --expr 'builtins.getFlake "${./.}"'
'';
};
};
Expand Down

0 comments on commit 264200b

Please sign in to comment.