aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorJoris2020-02-02 13:53:54 +0100
committerJoris2020-02-02 13:58:19 +0100
commit0ce8744897b9aa13ea568a6985da9570e4aca90b (patch)
tree3619508ff9ec5d846c567c3562d05ca77e686c76 /nix
parent13d29804ba4bb8d578fb0278ddeb6e187bbafa6f (diff)
Use zola generator
- Use CSS instead of Haskell with Clay - Use TypeScript instead of PureScript
Diffstat (limited to 'nix')
-rw-r--r--nix/purescript.nix49
1 files changed, 0 insertions, 49 deletions
diff --git a/nix/purescript.nix b/nix/purescript.nix
deleted file mode 100644
index 5b757b4..0000000
--- a/nix/purescript.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{ stdenv, fetchurl, makeWrapper, patchelf, gmpxx, ncurses5, zlib }:
-
-with stdenv; with lib;
-
-mkDerivation rec {
- name = "purescript-binary-${version}";
- version = "0.12.0";
- platform = {
- "x86_64-linux" = "linux64";
- }.${hostPlatform.system};
- src = fetchurl {
- url =
- "https://github.com/"
- + "purescript/purescript/releases/download/"
- + "v${version}/${platform}.tar.gz";
- sha256 = {
- "x86_64-linux" = "1wf7n5y8qsa0s2p0nb5q81ck6ajfyp9ijr72bf6j6bhc6pcpgmyc";
- }.${hostPlatform.system};
- name = "purescript.tar.gz";
- };
-
- buildInputs = [ makeWrapper ];
- unpackCmd = "tar -xzf $curSrc";
-
- installPhase = ''
- mkdir -p $out/bin $out/lib
- cp purs $out/bin/
- runHook postInstall
- '';
-
- postInstall = let
- libs = makeLibraryPath [ cc.cc gmpxx ncurses5 zlib ];
- in ''
- interpreter="$(cat $NIX_CC/nix-support/dynamic-linker)"
- ${patchelf}/bin/patchelf \
- --set-interpreter $interpreter \
- $out/bin/purs
- wrapProgram $out/bin/purs \
- --prefix LD_LIBRARY_PATH : ${libs}
- '';
-
- meta = {
- description = "A small strongly typed programming language with expressive
- types that compiles to JavaScript, written in and inspired by Haskell.";
- homepage = http://www.purescript.org/;
- license = licenses.bsd3;
- platforms = [ "x86_64-linux" ];
- };
-}