Skip to content

Commit

Permalink
fix rustc/ocaml/fpc, add profile onekey install script
Browse files Browse the repository at this point in the history
  • Loading branch information
moesoha committed Nov 20, 2023
1 parent 966630c commit 7d0d90c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
text = [gnutar gzip];
gcc = [luogu-gcc];
gcc-930 = [luogu-gcc930];
rustc = [rust-bin.nightly.latest.default];
rustc = [rust-bin.nightly.latest.default luogu-gcc];
ghc = [ghc];
python3-c = [(python311.withPackages (p: with p; [
numpy
]))];
python3-py = [pypy3];
pascal-fpc = [fpc];
pascal-fpc = [fpc binutils];
go = [go];
php = [(php82.buildEnv {
extensions = { all, ... }: with all; [
Expand All @@ -56,7 +56,7 @@
scala = [(scala.override { jre = jdk21_headless; })];
lua = [lua];
mono = [mono]; # TODO: use dotnet
ocaml = [ocaml];
ocaml = [ocaml luogu-gcc];
julia = [julia];
});
# packages."${system}" = {
Expand Down
7 changes: 7 additions & 0 deletions install-profiles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

rm -rf /nix/var/nix/profiles/judge_*

nix flake show --json \
| jq '.packages."x86_64-linux"|keys[]' \
| xargs -I {} nix profile install --profile /nix/var/nix/profiles/judge_{} .#{}

0 comments on commit 7d0d90c

Please sign in to comment.