Do not rely on the organic overlay being applied inside the organic_ast_explorer overlay.
This commit is contained in:
42
flake.nix
42
flake.nix
@@ -61,25 +61,31 @@
|
||||
}
|
||||
);
|
||||
overlays.default = final: prev: {
|
||||
organic_ast_explorer = final.lib.makeScope final.newScope (organic_ast_explorer_scope: {
|
||||
release = final.buildNpmPackage {
|
||||
pname = "organic_ast_explorer";
|
||||
version = "0.0.0";
|
||||
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 {
|
||||
pname = "organic_ast_explorer";
|
||||
version = "0.0.0";
|
||||
|
||||
src = final.lib.cleanSource ./.;
|
||||
npmDepsHash = "sha256-cIL9HRZIg8djOgFEuH7jwem7Eia7V5tPogONma+TO9U=";
|
||||
npmBuildScript = "release";
|
||||
preConfigure = ''
|
||||
substituteInPlace src/Explorer.tsx --replace-fail '../../organic/target/wasm32-unknown-unknown/js/wasm' '${final.organic.wasm_bundler}/share/bundler/wasm'
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
runHook preInstall
|
||||
cp -r dist/* "$out"
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
});
|
||||
src = final.lib.cleanSource ./.;
|
||||
npmDepsHash = "sha256-cIL9HRZIg8djOgFEuH7jwem7Eia7V5tPogONma+TO9U=";
|
||||
npmBuildScript = "release";
|
||||
preConfigure = ''
|
||||
substituteInPlace src/Explorer.tsx --replace-fail '../../organic/target/wasm32-unknown-unknown/js/wasm' '${wasm_bundler}/share/bundler/wasm'
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
runHook preInstall
|
||||
cp -r dist/* "$out"
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user