Do not rely on the organic overlay being applied inside the organic_ast_explorer overlay.
This commit is contained in:
12
flake.nix
12
flake.nix
@@ -61,7 +61,12 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
organic_ast_explorer = final.lib.makeScope final.newScope (organic_ast_explorer_scope: {
|
organic_ast_explorer = final.lib.makeScope final.newScope (
|
||||||
|
organic_ast_explorer_scope:
|
||||||
|
let
|
||||||
|
wasm_bundler = (organic.overlays.default final final).organic.wasm_bundler;
|
||||||
|
in
|
||||||
|
{
|
||||||
release = final.buildNpmPackage {
|
release = final.buildNpmPackage {
|
||||||
pname = "organic_ast_explorer";
|
pname = "organic_ast_explorer";
|
||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
@@ -70,7 +75,7 @@
|
|||||||
npmDepsHash = "sha256-cIL9HRZIg8djOgFEuH7jwem7Eia7V5tPogONma+TO9U=";
|
npmDepsHash = "sha256-cIL9HRZIg8djOgFEuH7jwem7Eia7V5tPogONma+TO9U=";
|
||||||
npmBuildScript = "release";
|
npmBuildScript = "release";
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace src/Explorer.tsx --replace-fail '../../organic/target/wasm32-unknown-unknown/js/wasm' '${final.organic.wasm_bundler}/share/bundler/wasm'
|
substituteInPlace src/Explorer.tsx --replace-fail '../../organic/target/wasm32-unknown-unknown/js/wasm' '${wasm_bundler}/share/bundler/wasm'
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
@@ -79,7 +84,8 @@
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user