Skip to content

vyorkin-forks/easy-purescript-nix

 
 

Repository files navigation

Easy PureScript Nix, NixOS Ready™

Build Status

Improvements welcomed, following two rules:

Rules:

  1. Binary downloads, no rebuilding
  2. Should be easy to pull it from remote (could be improved, see remote-test.nix)

See the blog post about this here: https://qiita.com/kimagure/items/de2a4ff45dd8fe8be4b1

Example usage

This repository uses Easy-PureScript-Nix for its setup:

https://github.com/justinwoo/spacchetti-react-basic-starter

Warning

Thanks to Pekka (@kaitanie), we have things working on NixOS. So report issues if things are broken!

I (Justin) do not use NixOS, so these builds may require extra patching for consumption from NixOS.

Potential questions

Can I see an example of this at work?

I have a setup for react-basic-starter here: https://github.com/justinwoo/spacchetti-react-basic-starter

As usual, my vidtracker repo also has lots of usages: https://github.com/justinwoo/vidtracker/tree/f78b3df57eaf5b122f0a0b51cc4e3c246bf96f88

Porco zio, I love this. How do I install to my system from here?

Behold:

> nix-env -f ~/Code/easy-purescript-nix/default.nix -iA inputs.dhall-simple
replacing old 'dhall-simple'
installing 'dhall-simple'
building '/nix/store/n2q4i6c28vhh6ff302k606lg7abbh998-user-environment.drv'...
created 504 symlinks in user environment

> which dhall
/home/justin/.nix-profile/bin/dhall

> dhall version
1.18.0

Or in your dotfiles instead:

let
  pkgs = import <nixpkgs> {};

  easyPS = import (pkgs.fetchFromGitHub {
    owner = "justinwoo";
    repo = "easy-purescript-nix";
    rev = "993f63359b64db080061b274e4688e3b80c4f68e";
    sha256 = "18b7fmmxkg38y1av9kfgcv2rikdlji51ya5b9p7sy3aml2hprmi5";
  });
in {
  inherit(easyPS.inputs)
   purs
   psc-package-simple
   purp
   ;
}

Why not upstream purp and spacchetti-cli/spago to nixpkgs?

Surely someone else will make a PR if they want it, but I am unlikely to use any nixpkgs version currently.

About

Easy PureScript (and other tools) with Nix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 96.2%
  • Makefile 3.8%