-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deluxe nix develop shell to flake.nix.
Update inputs, including Node.js 14_x → 18_x and Nixpkgs 23.05. New method for generating `node2nix`, based on Justin’s `composition.nix` method. Code reorganization.
- Loading branch information
1 parent
a90bd94
commit d6d4aaf
Showing
48 changed files
with
2,027 additions
and
8,113 deletions.
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
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
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 |
---|---|---|
@@ -1,10 +1,45 @@ | ||
{ inputs.utils.url = "github:numtide/flake-utils"; | ||
{ inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = { utils, ... }: | ||
utils.lib.eachDefaultSystem | ||
outputs = { flake-utils, ... }: | ||
flake-utils.lib.eachDefaultSystem | ||
(system: | ||
{ packages = | ||
(import ./. { pkgs = import ./pinned.nix { inherit system; }; }).inputs; | ||
let | ||
# TODO pinned.nix could be a flake input.nixpkgs instead. | ||
pkgs = import ./pinned.nix { inherit system; }; | ||
packages = (import ./default.nix { inherit pkgs; }).inputs; | ||
in | ||
{ | ||
inherit packages; | ||
devShells = { | ||
deluxe = pkgs.mkShell { | ||
name = "easy-purescript-nix-shell-deluxe"; | ||
buildInputs = with packages; [ | ||
purs | ||
pulp | ||
psc-package | ||
purp | ||
dhall-simple | ||
spago | ||
spago2nix | ||
pscid | ||
purescript-language-server | ||
purs-tidy | ||
purty | ||
zephyr | ||
purs-backend-es | ||
] ++ [ | ||
pkgs.nodejs-18_x | ||
pkgs.nodePackages.bower | ||
pkgs.esbuild | ||
]; | ||
shellHook = '' | ||
source <(spago --bash-completion-script `which spago`) | ||
source <(node --completion-bash) | ||
echo -e " \033[1measy-purescript-nix deluxe development environment\033[0m" | ||
echo -e " \033[1mSee https://discourse.purescript.org/t/recommended-tooling-for-purescript-in-2022\033[0m" | ||
''; | ||
}; | ||
}; | ||
} | ||
); | ||
} |
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,6 +1,6 @@ | ||
import ( | ||
builtins.fetchTarball { | ||
url = "https://github.com/nixos/nixpkgs/archive/212c4e8f7327324debecb32dc773bbadda08c3d8.tar.gz"; | ||
sha256 = "0kx4sh20s37v7w0ygxwq080iscl3a3pzjlrvvw17621si1lprcwp"; | ||
url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/23.05.tar.gz"; | ||
sha256 = "10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf"; | ||
} | ||
) |
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 |
---|---|---|
@@ -1,20 +1,7 @@ | ||
{ pkgs ? import <nixpkgs> { inherit system; } | ||
, system ? builtins.currentSystem | ||
, nodejs ? pkgs."nodejs-14_x" | ||
}: | ||
# How to generate the files in this directory: | ||
# | ||
# nix run nixpkgs#node2nix -- -i <(echo '["psa"]') -c composition.nix -18 | ||
# | ||
{ pkgs ? import <nixpkgs> { } }: | ||
|
||
let | ||
nodeEnv = import ./node-env.nix { | ||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile; | ||
inherit pkgs nodejs; | ||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null; | ||
}; | ||
|
||
nodePackage = import ./node-packages.nix { | ||
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit; | ||
inherit nodeEnv; | ||
}; | ||
|
||
source = nodePackage.sources."purescript-psa-0.8.2".src; | ||
in | ||
nodeEnv.buildNodePackage (nodePackage.args // { src = source; }) | ||
(import ./composition.nix { inherit pkgs; }).psa |
Oops, something went wrong.