purescript: 0.14.7 -> 0.15.0
This commit is contained in:
parent
f678ad7c7a
commit
2804a50193
|
@ -18,7 +18,7 @@ let
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "purescript";
|
pname = "purescript";
|
||||||
version = "0.14.7";
|
version = "0.15.0";
|
||||||
|
|
||||||
# These hashes can be updated automatically by running the ./update.sh script.
|
# These hashes can be updated automatically by running the ./update.sh script.
|
||||||
src =
|
src =
|
||||||
|
@ -26,12 +26,12 @@ in stdenv.mkDerivation rec {
|
||||||
then
|
then
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/macos.tar.gz";
|
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/macos.tar.gz";
|
||||||
sha256 = "0pc07xv5h7jgiy04rcrnsjb97nk5zs7jrvcsqggn0izlnrcyi8rc";
|
sha256 = "09d9pwba6fzc08m3nkc7xni29yr12gw5fj00aa77n9kxmsba0fkb";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/linux64.tar.gz";
|
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/linux64.tar.gz";
|
||||||
sha256 = "0vcjxb1v76wg4hmisnw0pp6wl0pwp4fa19cw08zdhgy62w06mqfa";
|
sha256 = "1ygp6wvbgl3y15wq1q41j9kg2ndaxr32rpgbzfzyd9zb8n9z8lpx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"use strict"
|
"use strict"
|
||||||
|
|
||||||
exports.log = function (s) {
|
export const log = function (s) {
|
||||||
return function () {
|
return function () {
|
||||||
console.log(s);
|
console.log(s);
|
||||||
return {};
|
return {};
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
runCommand "purescript-test-minimal-module" {} ''
|
runCommand "purescript-test-minimal-module" {} ''
|
||||||
${purescript}/bin/purs compile -o ./output ${./.}/Main.purs
|
${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
|
touch $out
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue