summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 5c267ec7d18653b4b46dd551e1d51446e81057ff (plain)
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 = ./.:' > $@