Cleanup build
This commit is contained in:
parent
937db06db2
commit
31ad9932c1
14
shell.nix
14
shell.nix
@ -1,4 +1,4 @@
|
|||||||
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc802" }:
|
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc822" }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (nixpkgs) pkgs;
|
inherit (nixpkgs) pkgs;
|
||||||
@ -22,7 +22,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
override = oldAttrs: {
|
override = oldAttrs: {
|
||||||
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ (with pkgs; [ postgresql ]) ++ (with haskellPackages; [ stack yesod-bin ]);
|
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ (with pkgs; [ postgresql cabal-install ]) ++ (with haskellPackages; [ stack yesod-bin ]);
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${oldAttrs.shellHook}
|
${oldAttrs.shellHook}
|
||||||
export PROMPT_INFO="${oldAttrs.name}"
|
export PROMPT_INFO="${oldAttrs.name}"
|
||||||
@ -36,12 +36,12 @@ let
|
|||||||
psql -f ${postgresSchema} postgres
|
psql -f ${postgresSchema} postgres
|
||||||
printf "Postgres logfile is %s\nPostgres socket directory is %s\n" ''${pgLogFile} ''${pgSockDir}
|
printf "Postgres logfile is %s\nPostgres socket directory is %s\n" ''${pgLogFile} ''${pgSockDir}
|
||||||
|
|
||||||
env --unset=shellHook zsh
|
cleanup() {
|
||||||
ret=$?
|
pg_ctl stop -D ''${pgDir}
|
||||||
|
rm -rvf ''${pgDir} ''${pgSockDir} ''${pgLogFile}
|
||||||
|
}
|
||||||
|
|
||||||
pg_ctl stop -D ''${pgDir}
|
trap cleanup EXIT
|
||||||
rm -rvf ''${pgDir} ''${pgSockDir} ''${pgLogFile}
|
|
||||||
exit ''${ret}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
60
stack.yaml
60
stack.yaml
@ -1,4 +1,5 @@
|
|||||||
flags: {}
|
flags: {}
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
enable: false
|
enable: false
|
||||||
image: uniworx
|
image: uniworx
|
||||||
@ -6,35 +7,40 @@ nix:
|
|||||||
packages: []
|
packages: []
|
||||||
pure: false
|
pure: false
|
||||||
shell-file: ./stack.nix
|
shell-file: ./stack.nix
|
||||||
|
|
||||||
extra-package-dbs: []
|
extra-package-dbs: []
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- .
|
- .
|
||||||
- location:
|
- location:
|
||||||
git: https://github.com/pngwjpgh/zip-stream.git
|
git: https://github.com/pngwjpgh/zip-stream.git
|
||||||
commit: 9272bbed000928d500febad1cdc98d1da29d399e
|
commit: 9272bbed000928d500febad1cdc98d1da29d399e
|
||||||
extra-dep: true
|
extra-dep: true
|
||||||
- location:
|
- location:
|
||||||
git: https://github.com/mlitchard/yesod-auth-ldap.git
|
git: https://github.com/mlitchard/yesod-auth-ldap.git
|
||||||
commit: 69e08ef687ab96df3352ff4267562135453c6f02
|
commit: 69e08ef687ab96df3352ff4267562135453c6f02
|
||||||
extra-dep: true
|
extra-dep: true
|
||||||
- location:
|
- location:
|
||||||
git: https://github.com/mlitchard/authenticate-ldap.git
|
git: https://github.com/mlitchard/authenticate-ldap.git
|
||||||
commit: cc2770024766a8fa29d3086688df60aaf65fb954
|
commit: cc2770024766a8fa29d3086688df60aaf65fb954
|
||||||
extra-dep: true
|
extra-dep: true
|
||||||
|
- location:
|
||||||
|
git: https://github.com/pngwjpgh/encoding.git
|
||||||
|
commit: 67bb87ceff53f0178c988dd4e15eeb2daee92b84
|
||||||
|
extra-dep: true
|
||||||
|
|
||||||
extra-deps:
|
extra-deps:
|
||||||
- colonnade-1.1.1
|
- colonnade-1.1.1
|
||||||
- yesod-colonnade-1.1.0
|
- yesod-colonnade-1.1.0
|
||||||
# - zip-stream-0.1.0.1
|
|
||||||
- conduit-resumablesink-0.2
|
|
||||||
- uuid-crypto-1.4.0.0
|
|
||||||
- filepath-crypto-0.1.0.0
|
|
||||||
- cryptoids-0.5.0.0
|
|
||||||
- cryptoids-types-0.0.0
|
|
||||||
- cryptoids-class-0.0.0
|
|
||||||
|
|
||||||
- encoding-0.8.2
|
- conduit-resumablesink-0.2
|
||||||
- regex-compat-0.93.1
|
|
||||||
|
|
||||||
- LDAP-0.6.11
|
- uuid-crypto-1.4.0.0
|
||||||
resolver: lts-9.3
|
- filepath-crypto-0.1.0.0
|
||||||
allow-newer: true
|
- cryptoids-0.5.0.0
|
||||||
|
- cryptoids-types-0.0.0
|
||||||
|
- cryptoids-class-0.0.0
|
||||||
|
|
||||||
|
- LDAP-0.6.11
|
||||||
|
|
||||||
|
resolver: lts-10.5
|
||||||
|
|||||||
Reference in New Issue
Block a user