From 2804a50193218970757c25de26d21357fc6954de Mon Sep 17 00:00:00 2001 From: Dennis Gosnell Date: Sat, 30 Apr 2022 17:43:58 +0900 Subject: [PATCH] purescript: 0.14.7 -> 0.15.0 --- .../development/compilers/purescript/purescript/default.nix | 6 +++--- .../purescript/purescript/test-minimal-module/Main.js | 2 +- .../purescript/purescript/test-minimal-module/default.nix | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/purescript/purescript/default.nix b/pkgs/development/compilers/purescript/purescript/default.nix index cbf36516465b..897348daf3dd 100644 --- a/pkgs/development/compilers/purescript/purescript/default.nix +++ b/pkgs/development/compilers/purescript/purescript/default.nix @@ -18,7 +18,7 @@ let in stdenv.mkDerivation rec { pname = "purescript"; - version = "0.14.7"; + version = "0.15.0"; # These hashes can be updated automatically by running the ./update.sh script. src = @@ -26,12 +26,12 @@ in stdenv.mkDerivation rec { then fetchurl { url = "https://github.com/${pname}/${pname}/releases/download/v${version}/macos.tar.gz"; - sha256 = "0pc07xv5h7jgiy04rcrnsjb97nk5zs7jrvcsqggn0izlnrcyi8rc"; + sha256 = "09d9pwba6fzc08m3nkc7xni29yr12gw5fj00aa77n9kxmsba0fkb"; } else fetchurl { url = "https://github.com/${pname}/${pname}/releases/download/v${version}/linux64.tar.gz"; - sha256 = "0vcjxb1v76wg4hmisnw0pp6wl0pwp4fa19cw08zdhgy62w06mqfa"; + sha256 = "1ygp6wvbgl3y15wq1q41j9kg2ndaxr32rpgbzfzyd9zb8n9z8lpx"; }; diff --git a/pkgs/development/compilers/purescript/purescript/test-minimal-module/Main.js b/pkgs/development/compilers/purescript/purescript/test-minimal-module/Main.js index a3547e206b7c..3f53065d2571 100644 --- a/pkgs/development/compilers/purescript/purescript/test-minimal-module/Main.js +++ b/pkgs/development/compilers/purescript/purescript/test-minimal-module/Main.js @@ -1,6 +1,6 @@ "use strict" -exports.log = function (s) { +export const log = function (s) { return function () { console.log(s); return {}; diff --git a/pkgs/development/compilers/purescript/purescript/test-minimal-module/default.nix b/pkgs/development/compilers/purescript/purescript/test-minimal-module/default.nix index 5f01298960cd..9bc694cd73f3 100644 --- a/pkgs/development/compilers/purescript/purescript/test-minimal-module/default.nix +++ b/pkgs/development/compilers/purescript/purescript/test-minimal-module/default.nix @@ -3,9 +3,9 @@ runCommand "purescript-test-minimal-module" {} '' ${purescript}/bin/purs compile -o ./output ${./.}/Main.purs - echo 'require("./output/Main/index.js").main()' > node.js + echo 'import {main} from "./output/Main/index.js"; main()' > node.mjs - ${nodejs}/bin/node node.js | grep "hello world" || echo "did not output hello world" + ${nodejs}/bin/node node.mjs | grep "hello world" || (echo "did not output hello world"; exit 1) touch $out ''