git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #171001 from cdepillabout/purescript-0.15.0

purescript: 0.14.7 -> 0.15.0

commitbf350cf8044bd1f9c4ece12bdf746dd5a4331354 authorDennis Gosnell <cdep.illabout@gmail.com> dateSun 1 May 2022, 16:28 (5 years ago) parent7be18af2804a50
3 files changed+6−6
pkgs/development/compilers/purescript/purescript/default.nix+3−3 pkgs/development/compilers/purescript/purescript/test-minimal-module/Main.js+1−1 pkgs/development/compilers/purescript/purescript/test-minimal-module/default.nix+2−2
pkgs/development/compilers/purescript/purescript/default.nix+3−3
@@ -18,7 +18,7 @@ let
1818
1919in stdenv.mkDerivation rec {
2020 pname = "purescript";
21− version = "0.14.7";
21+ version = "0.15.0";
2222
2323 # These hashes can be updated automatically by running the ./update.sh script.
2424 src =
@@ -26,12 +26,12 @@ in stdenv.mkDerivation rec {
2626 then
2727 fetchurl {
2828 url = "https://github.com/${pname}/${pname}/releases/download/v${version}/macos.tar.gz";
29− sha256 = "0pc07xv5h7jgiy04rcrnsjb97nk5zs7jrvcsqggn0izlnrcyi8rc";
29+ sha256 = "09d9pwba6fzc08m3nkc7xni29yr12gw5fj00aa77n9kxmsba0fkb";
3030 }
3131 else
3232 fetchurl {
3333 url = "https://github.com/${pname}/${pname}/releases/download/v${version}/linux64.tar.gz";
34− sha256 = "0vcjxb1v76wg4hmisnw0pp6wl0pwp4fa19cw08zdhgy62w06mqfa";
34+ sha256 = "1ygp6wvbgl3y15wq1q41j9kg2ndaxr32rpgbzfzyd9zb8n9z8lpx";
3535 };
3636
3737
pkgs/development/compilers/purescript/purescript/test-minimal-module/Main.js+1−1
@@ -1,6 +1,6 @@
11"use strict"
22
3−exports.log = function (s) {
3+export const log = function (s) {
44 return function () {
55 console.log(s);
66 return {};
pkgs/development/compilers/purescript/purescript/test-minimal-module/default.nix+2−2
@@ -3,9 +3,9 @@
33runCommand "purescript-test-minimal-module" {} ''
44 ${purescript}/bin/purs compile -o ./output ${./.}/Main.purs
55
6− echo 'require("./output/Main/index.js").main()' > node.js
6+ echo 'import {main} from "./output/Main/index.js"; main()' > node.mjs
77
8− ${nodejs}/bin/node node.js | grep "hello world" || echo "did not output hello world"
8+ ${nodejs}/bin/node node.mjs | grep "hello world" || (echo "did not output hello world"; exit 1)
99
1010 touch $out
1111''