Figured out patchelf hack for nixos users
This commit is contained in:
parent
0deb914805
commit
b8159a88e0
|
@ -36,6 +36,15 @@ You need `yarn`.
|
||||||
|
|
||||||
TODO: fill this out based on all the different packages scripts once they cool down.
|
TODO: fill this out based on all the different packages scripts once they cool down.
|
||||||
|
|
||||||
|
## If you're on NixOS
|
||||||
|
|
||||||
|
You'll need to run a command like this in order to get `yarn build` to run, especially in `packages/squiggle-lang`.
|
||||||
|
```sh
|
||||||
|
patchelf --set-interpreter $(patchelf --print-interpreter $(which mkdir)) ./node_modules/gentype/gentype.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
See [here](https://github.com/NixOS/nixpkgs/issues/107375)
|
||||||
|
|
||||||
# Pull request protocol
|
# Pull request protocol
|
||||||
|
|
||||||
Please work against `staging` branch. **Do not** work against `master`. Please do not merge without approval from some subset of Quinn, Sam, and Ozzie; they will be auto-pinged.
|
Please work against `staging` branch. **Do not** work against `master`. Please do not merge without approval from some subset of Quinn, Sam, and Ozzie; they will be auto-pinged.
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
yarn2nix
|
yarn2nix
|
||||||
nodePackages.npm
|
nodePackages.npm
|
||||||
nodejs
|
nodejs
|
||||||
|
patchelf
|
||||||
(pkgs.vscode-with-extensions.override {
|
(pkgs.vscode-with-extensions.override {
|
||||||
vscode = pkgs.vscodium;
|
vscode = pkgs.vscodium;
|
||||||
vscodeExtensions = pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
vscodeExtensions = pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
|
23
packages/squiggle-lang/__tests__/Symbolic_test.res
Normal file
23
packages/squiggle-lang/__tests__/Symbolic_test.res
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
open Jest
|
||||||
|
open Expect
|
||||||
|
open Js.Array
|
||||||
|
open SymbolicDist
|
||||||
|
open E.Sp
|
||||||
|
|
||||||
|
let makeTest = (~only=false, str, item1, item2) =>
|
||||||
|
only
|
||||||
|
? Only.test(str, () => expect(item1) -> toEqual(item2))
|
||||||
|
: test(str, () => expect(item1) -> toEqual(item2))
|
||||||
|
|
||||||
|
let normalParams1: SymbolicDistTypes.normal = {mean: 5.0, stdev: 2.0}
|
||||||
|
let normalParams2: SymbolicDistTypes.normal = {mean: 10.0, stdev: 2.0}
|
||||||
|
let normalParams3: SymbolicDistTypes.normal = {mean: 20.0, stdev: 2.0}
|
||||||
|
let range20 = [0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0]
|
||||||
|
let forSparkline = (thisPdf, inps) => map(thisPdf, inps)
|
||||||
|
|
||||||
|
describe("normal combine", () => {
|
||||||
|
let pdf1 = x => Normal.pdf(x, normalParams1)
|
||||||
|
let forSparkline1 = forSparkline(pdf1, range20)
|
||||||
|
let x = forSparkline1 -> toString -> sparkly -> Js.Console.log
|
||||||
|
makeTest("Spark1", 1, 0)
|
||||||
|
})
|
|
@ -24,7 +24,8 @@
|
||||||
"mathjs": "10.4.1",
|
"mathjs": "10.4.1",
|
||||||
"pdfast": "^0.2.0",
|
"pdfast": "^0.2.0",
|
||||||
"rationale": "0.2.0",
|
"rationale": "0.2.0",
|
||||||
"rescript": "^9.1.4"
|
"rescript": "^9.1.4",
|
||||||
|
"sparkly": "6.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@glennsl/rescript-jest": "^0.9.0",
|
"@glennsl/rescript-jest": "^0.9.0",
|
||||||
|
|
|
@ -441,3 +441,7 @@ module JsArray = {
|
||||||
|> Js.Array.map(Rationale.Option.toExn("Warning: This should not have happened"))
|
|> Js.Array.map(Rationale.Option.toExn("Warning: This should not have happened"))
|
||||||
let filter = Js.Array.filter
|
let filter = Js.Array.filter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module Sp = {
|
||||||
|
@module("sparkly") @scope("sparkly") external sparkly: string => string = "sparkly"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user