Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
cefde8c5
Commit
cefde8c5
authored
Mar 18, 2021
by
Justin Woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove need for old version of spago
parent
cdc7f851
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
25 deletions
+11
-25
generate-packages-json.bash
nix/generate-packages-json.bash
+6
-0
generate-packages-json.nix
nix/generate-packages-json.nix
+0
-23
package.json
package.json
+4
-2
shell.nix
shell.nix
+1
-0
No files found.
nix/generate-packages-json.bash
0 → 100755
View file @
cefde8c5
#!/usr/bin/env bash
set
-e
## You should use the `shell.nix` file in our project, or install dhall-to-json yourself: https://github.com/dhall-lang/dhall-haskell/releases
dhall-to-json
--file
packages.dhall
--output
./.psc-package/local/.set/packages.json
echo
"generated packages.json"
nix/generate-packages-json.nix
deleted
100755 → 0
View file @
cdc7f851
#!/usr/bin/env nix-shell
#!nix-shell ./generate-packages-json.nix --run 'exit'
{
pkgs
?
import
./pinned.nix
{
}
}:
let
easy-dhall
=
import
(
pkgs
.
fetchFromGitHub
{
owner
=
"justinwoo"
;
repo
=
"easy-dhall-nix"
;
rev
=
"90957969850a44481c6e150350c56e8b53b29e1e"
;
sha256
=
"1hsmp3cb0k554kh0jlfzpdzx2b8ndyh2gdykmw9hw41haaw16mmi"
;
}
)
{
inherit
pkgs
;
};
in
pkgs
.
mkShell
{
buildInputs
=
[
easy-dhall
.
dhall-simple
easy-dhall
.
dhall-json-simple
];
shellHook
=
''
dhall-to-json --file packages.dhall --output ./.psc-package/local/.set/packages.json
echo "generated packages.json"
''
;
}
package.json
View file @
cefde8c5
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
"name"
:
"Gargantext"
,
"name"
:
"Gargantext"
,
"version"
:
"0.0.2.7.1"
,
"version"
:
"0.0.2.7.1"
,
"scripts"
:
{
"scripts"
:
{
"rebase-set"
:
"spago package-set-upgrade && spago psc-package-insdhall"
,
"generate-purs-packages-nix"
:
"./nix/generate-purs-packages.nix"
,
"rebuild-set"
:
"spago psc-package-insdhall"
,
"generate-psc-packages-nix"
:
"./nix/generate-packages-json.bash"
,
"rebase-set"
:
"spago package-set-upgrade && yarn generate-psc-packages-nix"
,
"rebuild-set"
:
"yarn generate-psc-packages-nix"
,
"install-ps"
:
"psc-package install"
,
"install-ps"
:
"psc-package install"
,
"compile"
:
"pulp build"
,
"compile"
:
"pulp build"
,
"build"
:
"pulp browserify -t dist/bundle.js"
,
"build"
:
"pulp browserify -t dist/bundle.js"
,
...
...
shell.nix
View file @
cefde8c5
...
@@ -43,6 +43,7 @@ pkgs.mkShell {
...
@@ -43,6 +43,7 @@ pkgs.mkShell {
buildInputs
=
[
buildInputs
=
[
easy-ps
.
purs
easy-ps
.
purs
easy-ps
.
psc-package
easy-ps
.
psc-package
easy-ps
.
dhall-json-simple
build-purs
build-purs
build
build
repl
repl
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment