Commit 33f4a16f authored by dish's avatar dish
Browse files

microhs: add updateScript

parent 167bfb33
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  fetchFromGitHub,
  lib,
  writableTmpDirAsHomeHook,
  writeTextDir,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -29,9 +29,12 @@ stdenv.mkDerivation (finalAttrs: {
  # The MicroCabal that is installed by `make install` is pregenerated, does not respect MCABAL above, and so is not useable
  postInstall = "rm $out/bin/mcabal";

  passthru.tests = {
  passthru = {
    updateScript = nix-update-script { };
    tests = {
      hello-world = callPackage ./test-hello-world.nix { microhs = finalAttrs.finalPackage; };
    };
  };

  meta = {
    description = "Haskell implemented with combinators";