mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
shell.nix: add a quick-test script, qt (#314)
This commit is contained in:
22
shell.nix
22
shell.nix
@@ -1,8 +1,18 @@
|
|||||||
with import <nixpkgs> {};
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "env";
|
scripts = {
|
||||||
env = buildEnv { name = name; paths = buildInputs; };
|
# Quick test script.
|
||||||
buildInputs = [
|
qt = pkgs.writeScriptBin "qt" ''
|
||||||
|
# Builds & starts inbucket, then sends it some test mail.
|
||||||
|
|
||||||
|
make build test inbucket || exit
|
||||||
|
(sleep 3; etc/swaks-tests/run-tests.sh >/dev/null) &
|
||||||
|
env INBUCKET_LOGLEVEL=debug ./inbucket
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
act
|
act
|
||||||
dpkg
|
dpkg
|
||||||
elmPackages.elm
|
elmPackages.elm
|
||||||
@@ -18,5 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
nodePackages.yarn
|
nodePackages.yarn
|
||||||
rpm
|
rpm
|
||||||
swaks
|
swaks
|
||||||
|
|
||||||
|
scripts.qt
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user