spago@next migration

parent f3b057e2
{
"devDependencies": {
"spago": "^0.93.29"
}
}
let upstream =
https://github.com/garganscript/package-sets/releases/download/v0.1.7/release.dhall
sha256:52886309e1f0158a85427f80c1e3d47ce747c5f14fcec671a81fe5c2c711a6db
in upstream
{ pkgs ? import ./nix/pinned.nix {} }:
let
default-shell = import (
pkgs.fetchFromGitHub {
owner = "garganscript";
repo = "package-sets";
rev = "master";
sha256 = "RYFsTna5cg7EjynLvkFg87zTLSMeZw7DNIgPu9iXokk=";
} + "/default-shell.nix");
build = pkgs.writeShellScriptBin "build" ''
#!/usr/bin/env bash
set -e
echo "Installing JS Dependencies"
yarn
echo "Compiling"
# 0.15
spago build
#spago bundle-module --main Main --to dist/bundle.js
'';
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/23.11.tar.gz";
#sha256 = "162dywda2dvfj1248afxc45kcrg83appjd0nmdb541hl7rnncf02";
};
in
test-ps = pkgs.writeShellScriptBin "test-ps" ''
#!/usr/bin/env bash
set -e
{ pkgs ? import nixpkgs {} }:
echo "Compiling"
yarn
echo "Testing"
spago -x test.dhall test --main Test.Main
'';
let
ezPscSrc = pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-purescript-nix";
rev = "117fd96acb69d7d1727df95b6fde9d8715e031fc";
sha256 = "lcIRIOFCdIWEGyKyG/tB4KvxM9zoWuBRDxW+T+mvIb0="; };
ezPsc = import ezPscSrc { inherit pkgs; };
in
pkgs.mkShell {
name = "purescript-string-search";
name = "purescript-reactix";
buildInputs = [
build
test-ps
default-shell.purs
default-shell.easy-ps.psc-package
default-shell.easy-ps.spago
default-shell.build
default-shell.pkgs.dhall-json
default-shell.pkgs.nodejs
default-shell.pkgs.yarn
ezPsc.purs-0_15_15
ezPsc.psc-package
pkgs.nodejs
pkgs.yarn
];
}
{-
Welcome to a Spago project!
You can edit this file as you like.
Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "string-search"
, dependencies =
[ "arrays"
, "enums"
, "foldable-traversable"
, "int64"
, "lists"
, "maybe"
, "ordered-collections"
, "partial"
, "prelude"
, "strings"
, "tuples"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
}
This diff is collapsed.
workspace:
packageSet:
registry: 50.7.0
extraPackages:
spec-discovery:
git: https://github.com/garganscript/purescript-spec-discovery.git
ref: v8.2.0-spago-next
package:
name: string-search
dependencies:
- int64: ">=3.0.0 <4.0.0"
- prelude: ">=6.0.1 <7.0.0"
test:
main: Test.Main
dependencies:
- quickcheck
- spec
- spec-discovery
- spec-quickcheck
let conf = ./spago.dhall
in conf
// { sources = conf.sources # [ "test/**/*.purs" ]
, dependencies =
conf.dependencies
# [ "aff"
, "effect"
, "quickcheck"
, "spec"
, "spec-discovery"
, "spec-quickcheck"
]
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment