From 47e439862c93fcab3a92db808b848bada8586bf8 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Tue, 1 Mar 2022 10:07:44 -0500 Subject: [PATCH 1/2] docs: link Haskell --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index c377f87..27b242f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -10,7 +10,7 @@ page: ::: {.text-xl .mb-8} -[Ema](https://github.com/srid/ema) is a next-gen **Haskell** library toolkit for building [jamstack-style](https://jamstack.org/) static sites. Ema sites are *change-aware*; in addition to good ol' static site generation, it provides a live server supporting **fast hot-reload** in the browser on code *or* data change. +[Ema](https://github.com/srid/ema) is a next-gen [**Haskell**](https://www.srid.ca/haskell) library toolkit for building [jamstack-style](https://jamstack.org/) static sites. Ema sites are *change-aware*; in addition to good ol' static site generation, it provides a live server supporting **fast hot-reload** in the browser on code *or* data change. {.text-gray-600} The ultimate goal of ema is to facilitate creating with ease your own [neuron](https://neuron.zettel.page/), or just about any app that creates a browser view of arbitrarily changing data (on disk, database, or whatever). Ema is designed to facilitate creation of apps whose data is normally *edited* via traditional mechanisms (eg: text editor) but *rendered* as a delightful web page - so as to provide an economical read-only view of your data on desktop & mobile. From bcabc170b7de9cdd83b4bbcf59130b54933602ea Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 7 Mar 2022 09:02:47 -0500 Subject: [PATCH 2/2] Advance nixpkgs --- flake.lock | 8 ++++---- flake.nix | 21 ++------------------- 2 files changed, 6 insertions(+), 23 deletions(-) diff --git a/flake.lock b/flake.lock index c93dc3f..1a90147 100644 --- a/flake.lock +++ b/flake.lock @@ -48,17 +48,17 @@ }, "nixpkgs": { "locked": { - "lastModified": 1644972330, - "narHash": "sha256-6V2JFpTUzB9G+KcqtUR1yl7f6rd9495YrFECslEmbGw=", + "lastModified": 1646470760, + "narHash": "sha256-dQISyucVCCPaFioUhy5ZgfBz8rOMKGI8k13aPDFTqEs=", "owner": "nixos", "repo": "nixpkgs", - "rev": "19574af0af3ffaf7c9e359744ed32556f34536bd", + "rev": "1fc7212a2c3992eedc6eedf498955c321ad81cc2", "type": "github" }, "original": { "owner": "nixos", "repo": "nixpkgs", - "rev": "19574af0af3ffaf7c9e359744ed32556f34536bd", + "rev": "1fc7212a2c3992eedc6eedf498955c321ad81cc2", "type": "github" } }, diff --git a/flake.nix b/flake.nix index d308dd4..34eb147 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "Ema project"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/19574af0af3ffaf7c9e359744ed32556f34536bd"; + nixpkgs.url = "github:nixos/nixpkgs/1fc7212a2c3992eedc6eedf498955c321ad81cc2"; flake-utils.url = "github:numtide/flake-utils"; flake-utils.inputs.nixpkgs.follows = "nixpkgs"; flake-compat = { @@ -18,21 +18,6 @@ pkgs = import nixpkgs { inherit system overlays; }; - # https://github.com/NixOS/nixpkgs/issues/140774#issuecomment-976899227 - m1MacHsBuildTools = - pkgs.haskellPackages.override { - overrides = self: super: - let - workaround140774 = hpkg: with pkgs.haskell.lib; - overrideCabal hpkg (drv: { - enableSeparateBinOutput = false; - }); - in - { - ghcid = workaround140774 super.ghcid; - ormolu = workaround140774 super.ormolu; - }; - }; emaProject = returnShellEnv: pkgs.haskellPackages.developPackage { inherit name returnShellEnv; @@ -44,9 +29,7 @@ }; modifier = drv: pkgs.haskell.lib.addBuildTools drv - (with (if system == "aarch64-darwin" - then m1MacHsBuildTools - else pkgs.haskellPackages); [ + (with pkgs.haskellPackages; [ # Specify your build/dev dependencies here. cabal-fmt cabal-install