@@ -33,10 +33,30 @@ stdenv.mkDerivation rec {
3333 ] ++ stdenv.lib.optional (builtins.elem stdenv.system
3434 stdenv.lib.platforms.x86_64) "--with-sse2=yes";
3535
36− buildInputs = [
37− pkgconfig which gettext intltool
38− glib gtk2
39− ];
36+ enableParallelBuilding = true;
37+
38+ doCheck = true;
39+ checkPhase = ''
40+ pushd regtest
41+
42+ mkdir -p "$TMP"/{log,regtest}
43+ substituteInPlace common.bash \
44+ --replace /dev/shm "$TMP/log" \
45+ --replace /var/tmp "$TMP"
46+
47+ for test in *.bash; do
48+ case "$test" in
49+ common.bash)
50+ echo "Skipping $test"
51+ continue ;;
52+ *)
53+ echo "Running $test"
54+ ./"$test"
55+ esac
56+ done
57+
58+ popd
59+ '';
4060
4161 postInstall = ''
4262 mkdir -pv $out/share/applications