From dd354bc323cd3176c9676444f99b33b69d0a2062 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 14 May 2022 15:21:52 -0600 Subject: Create srv.dev-shell target in Makefile --- srv/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'srv') diff --git a/srv/default.nix b/srv/default.nix index a5aa6af..7067e1e 100644 --- a/srv/default.nix +++ b/srv/default.nix @@ -52,18 +52,13 @@ shell = stdenv.mkDerivation { name = "mediocre-blog-srv-shell"; - buildInputs = [ go build ]; - shellHook = '' - source ${init} - cd src - ''; + buildInputs = [ go ]; + shellHook = ''source ${init}''; }; - test = stdenv.mkDerivation { - name = "mediocre-blog-srv-test"; - buildInputs = [ go ]; - shellHook = '' - source ${init} - ''; + shellWithBuild = stdenv.mkDerivation { + name = "mediocre-blog-srv-shell-with-build"; + buildInputs = [ go build ]; + shellHook = ''source ${init}''; }; } -- cgit v1.2.3