1 2 3 4 5 6 7
.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 = ./.:' > $@