.PHONY: nix-shell nix-shell: shell.nix nix-shell --command 'cd src && exec ghci' shell.nix: scanner.cabal cabal2nix --shell --sha256=0 $< \ | sed 's:sha256 = "0":src = ./.:' > $@