Skip to content

Commit

Permalink
trim size of godbolt.
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Oct 13, 2023
1 parent ef77268 commit 992d284
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions basil/godbolt-basil.nix → basil/godbolt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
basil-tool,

nodejs,
godbolt-basil,
godbolt,
}:

let
Expand Down Expand Up @@ -54,13 +54,19 @@ let
runHook postBuild
'';

preInstall = ''
npm uninstall --omit=dev --ignore-scripts ts-node monaco-editor monaco-vim @fortawesome/fontawesome-free
'';

postInstall = ''
lib=$out/lib/node_modules/compiler-explorer
cp -r out $lib
cp -r out $src/package.json $src/package-lock.json $lib
rm -rf $lib/test $lib/node_modules/.cache
'';
};
in stdenv.mkDerivation {
pname = "godbolt-basil";
pname = "godbolt";
version = ce-ailrst.version;

buildInputs = [ bash nodejs ];
Expand Down
2 changes: 1 addition & 1 deletion basil/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let
# .overrideAttrs { src = prev.lib.cleanSource ~/progs/basil; }
;

godbolt-basil = (prev.callPackage ./godbolt-basil.nix {});
godbolt = (prev.callPackage ./godbolt.nix {});
basil-tool = prev.callPackage ./basil-tool.nix {};

jre = final.temurin-jre-bin-17;
Expand Down

0 comments on commit 992d284

Please sign in to comment.