Unverified Commit f17b3638 authored by nixpkgs-ci[bot]'s avatar nixpkgs-ci[bot] Committed by GitHub
Browse files

microhs: 0.14.21.0 -> 0.15.3.0; add updateScript (#492865)

parents 583c21d8 33f4a16f
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -4,18 +4,18 @@
  fetchFromGitHub,
  lib,
  writableTmpDirAsHomeHook,
  writeTextDir,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "microhs";
  version = "0.14.21.0";
  version = "0.15.3.0";

  src = fetchFromGitHub {
    owner = "augustss";
    repo = "MicroHs";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Tq8fjI3LCP4NWrmbMP0xyhY2fjRmsMCEvgfDQ/SB5Bo=";
    hash = "sha256-JuqdArVzziJC4/QZLfPguXbd+ZiPD3bgf1mGYghkxy0=";
  };

  # mcabal doesn't seem to respect the make flag and fails with /homeless-shelter
@@ -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";