-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
121 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ | |
/.psc* | ||
/.purs* | ||
/.psa* | ||
/.vscode/ | ||
/.vscode/ | ||
.direnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# react-basic-emotion | ||
|
||
[Emotion](https://emotion.sh/) support for [react-basic](https://github.com/lumihq/purescript-react-basic)! | ||
|
||
[![Build Status](https://github.com/lumihq/purescript-react-basic-emotion/actions/workflows/ci.yml/badge.svg)](https://github.com/lumihq/purescript-react-basic-emotion/actions/workflows/ci.yml) | ||
<a href="https://pursuit.purescript.org/packages/purescript-react-basic-emotion"> | ||
<img src="https://pursuit.purescript.org/packages/purescript-react-basic-emotion/badge" | ||
alt="Fixed Precision on Pursuit"> | ||
</img> | ||
</a> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
description = "Provide an environment for working in this repo"; | ||
|
||
# to handle mac and linux | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
# we want to use a consistent nixpkgs across developers. | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
|
||
outputs = all@{ self, nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
}; | ||
packages = | ||
let | ||
# everything we want available in our development environment that isn't managed by | ||
# npm, spago | ||
# we do not differentiate between libraries needed for building and tools at the moment. | ||
sharedPackages = with pkgs; [ | ||
nodejs-16_x | ||
]; | ||
in | ||
sharedPackages; | ||
in { | ||
# produce our actual shell | ||
devShell = pkgs.mkShell rec { | ||
# make our packages available | ||
buildInputs = packages; | ||
}; | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Universal shell for PureScript repos | ||
{ pkgs ? import (builtins.fetchGit { | ||
# https://github.com/NixOS/nixpkgs/releases/tag/21.11 | ||
url = "https://github.com/nixos/nixpkgs/"; | ||
ref = "refs/tags/21.11"; | ||
rev = "a7ecde854aee5c4c7cd6177f54a99d2c1ff28a31"; | ||
}) {} | ||
}: | ||
let | ||
easy-ps-src = builtins.fetchGit { | ||
url = "https://github.com/justinwoo/easy-purescript-nix.git"; | ||
ref = "master"; | ||
rev = "0ad5775c1e80cdd952527db2da969982e39ff592"; | ||
}; | ||
easy-ps = import easy-ps-src { inherit pkgs; }; | ||
in | ||
pkgs.mkShell { | ||
nativeBuildInputs = [ | ||
easy-ps.purs-0_15_0 | ||
easy-ps.spago | ||
easy-ps.pulp-16_0_0-0 | ||
easy-ps.psc-package | ||
easy-ps.purs-tidy | ||
pkgs.nodejs-16_x | ||
pkgs.nodePackages.bower | ||
]; | ||
LC_ALL = "C.UTF-8"; # https://github.com/purescript/spago/issues/507 | ||
# https://github.com/purescript/spago#install-autocompletions-for-bash | ||
shellHook = '' | ||
source <(spago --bash-completion-script `which spago`) | ||
''; | ||
} |