Skip to content

Commit

Permalink
shell nix
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Jan 30, 2024
1 parent b763f5c commit 1dcdfd4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions replication/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
all:
@mkdir -p plots data
@julia --project=".." --color=yes make_distribution_plot.jl
@julia --project=".." --color=yes make_outcome_plot.jl
@julia --project=".." --color=yes make_table.jl
Expand Down
2 changes: 1 addition & 1 deletion replication/logo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ ax.scatter([v2[1]], [v2[2]], s=r, lw=6, fc=col_3, ec=col_dark, zorder=12)
ax.scatter([v3[1]], [v3[2]], s=r, lw=6, fc=col_4, ec=col_dark, zorder=12)

# save
plt.savefig("logo.svg", dpi=1000, transparent=True)
plt.savefig("../docs/src/assets/logo.svg", dpi=1000, transparent=true)
plt.close("all")
8 changes: 8 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ pkgs = import <nixpkgs> { };
in pkgs.mkShell {
buildInputs = with pkgs; [
julia
cacert
python3
python3Packages.matplotlib
texlive.combined.scheme-full
git
];
shellHook = ''
# run this to link Julia PyCall package to nixpkgs python3
#julia --color=yes -e 'using Pkg; ENV["PYTHON"]="${pkgs.python3}/bin/python3"; Pkg.build("PyCall")'
'';
}

0 comments on commit 1dcdfd4

Please sign in to comment.