From 1d8e10566e6353407de53bac323be0ead67cdcb3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Oct 2017 11:30:49 +0200 Subject: [PATCH] Fix build when using nix & minor cleanup --- shell.nix | 10 ++++------ src/Application.hs | 2 +- stack.yaml | 1 + test/TestImport.hs | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/shell.nix b/shell.nix index 837e26c67..df2997a61 100644 --- a/shell.nix +++ b/shell.nix @@ -13,6 +13,8 @@ let CREATE USER uniworx; CREATE DATABASE uniworx_test; GRANT ALL ON DATABASE uniworx_test TO uniworx; + CREATE DATABASE uniworx; + GRANT ALL ON DATABASE uniworx TO uniworx; ''; postgresHba = pkgs.writeText "hba_file" '' @@ -33,16 +35,12 @@ let export PGHOST=''${pgSockDir} PGLOG=''${pgLogFile} psql -f ${postgresSchema} postgres printf "Postgres logfile is %s\nPostgres socket directory is %s\n" ''${pgLogFile} ''${pgSockDir} - cat > .dbsettings.yml < Spec withApp = before $ do settings <- loadYamlSettings - [".dbsettings.yml", "config/test-settings.yml", "config/settings.yml"] + ["config/test-settings.yml", "config/settings.yml"] [] useEnv foundation <- makeFoundation settings