Improvements welcomed, following two rules:
Rules:
- Binary downloads, no rebuilding
- 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
This repository uses Easy-PureScript-Nix for its setup:
https://github.com/justinwoo/spacchetti-react-basic-starter
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.
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
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
;
}
Surely someone else will make a PR if they want it, but I am unlikely to use any nixpkgs version currently.