we took a step backwards somewhere, somehow.

This commit is contained in:
Quinn Dougherty 2022-08-16 01:02:53 -07:00
parent 07d739d3db
commit 5f7b8f1c07
4 changed files with 15 additions and 16 deletions

View File

@ -73,16 +73,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1660496378,
"narHash": "sha256-sgAhmrC1iSnl5T2VPPiMpciH1aRw5c7PYEdXX6jd6Gk=",
"lastModified": 1660485612,
"narHash": "sha256-sSLW1KaB1adKTJn9+Ja3h3AaS7QCZyhUKiSUStcLg80=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "879121648fe522b38cc1cf75aef160a14a1f2e7b",
"rev": "6512b21eabb4d52e87ea2edcf31a288e67b2e4f8",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-22.05",
"ref": "nixos-unstable",
"type": "indirect"
}
},

View File

@ -2,7 +2,7 @@
description = "Squiggle CI";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
nixpkgs.url = "nixpkgs/nixos-unstable";
gentype = {
url = "github:quinn-dougherty/genType";
inputs.nixpkgs.follows = "nixpkgs";
@ -27,7 +27,9 @@
};
gentypeOutputFn = pkgs: gentype.outputs.packages.${pkgs.system}.default;
langFn = { pkgs, ... }:
import ./nix/squiggle-lang.nix { inherit pkgs commonFn gentypeOutputFn; };
import ./nix/squiggle-lang.nix {
inherit pkgs commonFn gentypeOutputFn;
};
componentsFn = { pkgs, ... }:
import ./nix/squiggle-components.nix { inherit pkgs commonFn langFn; };
websiteFn = { pkgs, ... }:
@ -85,10 +87,8 @@
};
components.outputs = {
squiggle-components = components.components-package-build;
squiggle-components-lint =
components.components-lint;
squiggle-components-storybook =
components.components-site-build;
squiggle-components-lint = components.components-lint;
squiggle-components-storybook = components.components-site-build;
};
docs-site.outputs = {
squiggle-website = website.website;
@ -98,7 +98,7 @@
};
};
in flake-utils.lib.eachDefaultSystem (system:
in flake-utils.lib.eachDefaultSystem (system:
let
# globals
pkgs = import nixpkgs {

View File

@ -1,6 +1,5 @@
{ pkgs }:
with pkgs;
{
with pkgs; {
shell = mkShell {
name = "SQUIGGLE_yarn-wasm-devshell";
buildInputs =

View File

@ -34,9 +34,7 @@ rec {
gentype = {
postInstall = ''
mv gentype.exe ELFLESS-gentype.exe
cp ${
gentypeOutputFn pkgs
}/src/GenType.exe gentype.exe
cp ${gentypeOutputFn pkgs}/src/GenType.exe gentype.exe
'';
};
};
@ -58,7 +56,9 @@ rec {
src = lang-yarnPackage + "/libexec/@quri/squiggle-lang";
buildInputs = common.buildInputs;
buildPhase = ''
# so that the path to ppx doesn't need to be patched.
mv node_modules deps
pushd deps/@quri/squiggle-lang
yarn --offline build:peggy
yarn --offline build:rescript