Merge pull request #171001 from cdepillabout/purescript-0.15.0

purescript: 0.14.7 -> 0.15.0
This commit is contained in:
Dennis Gosnell 2022-05-01 16:28:02 +09:00 committed by GitHub
commit bf350cf804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -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";
};

View file

@ -1,6 +1,6 @@
"use strict"
exports.log = function (s) {
export const log = function (s) {
return function () {
console.log(s);
return {};

View file

@ -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
''