about summary refs log tree commit diff
path: root/pkgs/development/compilers/purescript/purescript
diff options
context:
space:
mode:
authorjustinwoo <moomoowoo@gmail.com>2019-03-20 00:16:40 +0200
committerjustinwoo <moomoowoo@gmail.com>2019-03-20 00:36:55 +0200
commit0810c406b71157c6a72737585a11b10b3de8bb18 (patch)
treefc5f249bd75c976e4ba325c893547dc516b1cc07 /pkgs/development/compilers/purescript/purescript
parent0bf5c6acb4a8e1ee85f30401065f1b4d45b75136 (diff)
downloadnixlib-0810c406b71157c6a72737585a11b10b3de8bb18.tar
nixlib-0810c406b71157c6a72737585a11b10b3de8bb18.tar.gz
nixlib-0810c406b71157c6a72737585a11b10b3de8bb18.tar.bz2
nixlib-0810c406b71157c6a72737585a11b10b3de8bb18.tar.lz
nixlib-0810c406b71157c6a72737585a11b10b3de8bb18.tar.xz
nixlib-0810c406b71157c6a72737585a11b10b3de8bb18.tar.zst
nixlib-0810c406b71157c6a72737585a11b10b3de8bb18.zip
purescript: fix purescript derivation using easy-purescript-nix
For the past couple of years, there has continued to be problems with having the PureScript compiler on nixpkgs building from Haskell packages it is not built against in its actual development and release. We have seen this issue come up multiple times here on nixpkgs, but this also causes numerous issues to be filed against the PureScript compiler repository. One example of an exchange that has occurred multiple times in the past: https://github.com/NixOS/nixpkgs/issues/53597 https://github.com/purescript/purescript/issues/3571. As noted, the PureScript compiler is not on Stackage because it is not meant to be used as a library, and it does not update itself to the latest LTS and cut releases to match LTS releases.

Instead, I have begun maintaining my own derivation for the PureScript compiler (among other tools) in a small project here: https://github.com/justinwoo/easy-purescript-nix. Within are other reference and derivations for other tools commonly used in the PureScript ecosystem, updated to their respective newest releases. These derivations use the same releases that other Linux and OSX users use, along with the standard application of patchELF to provide for runtime dependencies such as zlib, gmp, and ncurses5. These derivations are now used by a variety of NixOS, non-NixOS Linux, and OSX users.

This commit then consumes the easy-purescript-nix derivation for the PureScript compiler and provides it in all-packages for consumption.
Diffstat (limited to 'pkgs/development/compilers/purescript/purescript')
-rw-r--r--pkgs/development/compilers/purescript/purescript/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/compilers/purescript/purescript/default.nix b/pkgs/development/compilers/purescript/purescript/default.nix
new file mode 100644
index 000000000000..2b6518eef913
--- /dev/null
+++ b/pkgs/development/compilers/purescript/purescript/default.nix
@@ -0,0 +1,11 @@
+{ fetchFromGitHub }:
+
+let
+  easyPS = import (fetchFromGitHub {
+    owner = "justinwoo";
+    repo = "easy-purescript-nix";
+    rev = "d383972c82620a712ead4033db14110497bc2c9c";
+    sha256 = "0hj85y3k0awd21j5s82hkskzp4nlzhi0qs4npnv172kaac03x8ms";
+  });
+
+in easyPS.purs