1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

shell.nix: add a quick-test script, qt (#314)

This commit is contained in:
James Hillyerd
2023-01-16 20:15:40 -08:00
committed by GitHub
parent f5899c293c
commit 37806f222d

View File

@@ -1,8 +1,18 @@
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "env";
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = [
{ pkgs ? import <nixpkgs> { } }:
let
scripts = {
# Quick test script.
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
dpkg
elmPackages.elm
@@ -18,5 +28,7 @@ stdenv.mkDerivation rec {
nodePackages.yarn
rpm
swaks
scripts.qt
];
}