This commit is contained in:
2026-05-27 20:37:47 +09:00
parent 0195f75287
commit 1abb99aa07
129 changed files with 0 additions and 5219 deletions
-46
View File
@@ -1,46 +0,0 @@
{ pkgs }:
let
py = pkgs.python312;
pyEnv = py.withPackages (
ps: with ps; [
ipykernel
notebook
jupyterlab
numpy
pandas
matplotlib
scipy
scikit-learn
pyathena
python-dotenv
plotly
seaborn
]
);
in
pkgs.mkShell {
name = "jupyter-notebook";
packages = with pkgs; [
pyEnv
zsh
];
PYTHONNOUSERSITE = "1";
JUPYTER_CONFIG_DIR = "$PWD/.jupyter";
IPYTHONDIR = "$PWD/.ipython";
shellHook = ''
set -e
if command -v python >/dev/null; then
echo "📓 jupyter shell → python $(python -V | awk '{print $2}')"
fi
if [ -z "''${ZSH_VERSION:-}" ] && [[ $- == *i* ]] && [ -t 1 ] && [ -z "''${NIX_SHELL_ZSH_ACTIVATED:-}" ]; then
export NIX_SHELL_ZSH_ACTIVATED=1
exec ${pkgs.zsh}/bin/zsh -i
fi
'';
}
-66
View File
@@ -1,66 +0,0 @@
{ pkgs }:
let
node = pkgs.nodejs_24;
in
pkgs.mkShell {
name = "next-web";
packages = with pkgs; [
node
nodePackages_latest.pnpm
nodePackages_latest.vercel
nodePackages_latest.prisma
zsh
openssl
pkg-config
jq
ngrok
];
NODE_ENV = "development";
shellHook = ''
# corepack store under repo (avoid polluting home)
export COREPACK_HOME="$PWD/.corepack"
# pnpm global bin dir (NixOS/zshでも確実に有効にする)
export PNPM_HOME="''${XDG_DATA_HOME:-$HOME/.local/share}/pnpm"
mkdir -p "$PNPM_HOME"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# Prisma engines from nixpkgs (avoid binaries.prisma.sh fetch on NixOS)
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig"
export PRISMA_FMT_BINARY="${pkgs.prisma-engines}/bin/prisma-fmt"
# ---- show tool versions
if command -v node >/dev/null; then
echo "next-web shell -> node $(node -v)"
fi
if command -v pnpm >/dev/null; then
echo " pnpm $(pnpm --version)"
echo " PNPM_HOME=$PNPM_HOME"
fi
# Activate packageManager from package.json if present.
if command -v corepack >/dev/null 2>&1; then
if [ -f package.json ] && command -v jq >/dev/null 2>&1 && jq -e '.packageManager' package.json >/dev/null; then
COREPACK_ENABLE_DOWNLOADS=1 corepack prepare --activate || true
fi
fi
# ---- switch to zsh (interactive only). Don't break `nix develop -c ...`
if [ -z "''${ZSH_VERSION:-}" ] && [[ $- == *i* ]] && [ -t 1 ] && [ -z "''${NIX_SHELL_ZSH_ACTIVATED:-}" ]; then
export NIX_SHELL_ZSH_ACTIVATED=1
exec ${pkgs.zsh}/bin/zsh -i
fi
'';
env = {
PRISMA_QUERY_ENGINE_LIBRARY = "${pkgs.prisma-engines}/lib/libquery_engine.node";
PRISMA_QUERY_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/query-engine";
PRISMA_SCHEMA_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/schema-engine";
};
}
-49
View File
@@ -1,49 +0,0 @@
# ref: https://nixos.wiki/wiki/Rust
{ pkgs ? import <nixpkgs> {} }:
let
overrides = (builtins.fromTOML (builtins.readFile ./rust-toolchain.toml));
libPath = with pkgs; lib.makeLibraryPath [
# load external libraries that you need in your rust project here
];
in
pkgs.mkShell rec {
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = with pkgs; [
clang
# Replace llvmPackages with llvmPackages_X, where X is the latest LLVM version (at the time of writing, 16)
llvmPackages.bintools
rustup
];
RUSTC_VERSION = overrides.toolchain.channel;
# https://github.com/rust-lang/rust-bindgen#environment-variables
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ];
shellHook = ''
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-x86_64-unknown-linux-gnu/bin/
'';
# Add precompiled library to rustc search path
RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') [
# add libraries here (e.g. pkgs.libvmi)
]);
LD_LIBRARY_PATH = libPath;
# Add glibc, clang, glib, and other headers to bindgen search path
BINDGEN_EXTRA_CLANG_ARGS =
# Includes normal include path
(builtins.map (a: ''-I"${a}/include"'') [
# add dev libraries here (e.g. pkgs.libvmi.dev)
pkgs.glibc.dev
])
# Includes with special directory paths
++ [
''-I"${pkgs.llvmPackages_latest.libclang.lib}/lib/clang/${pkgs.llvmPackages_latest.libclang.version}/include"''
''-I"${pkgs.glib.dev}/include/glib-2.0"''
''-I${pkgs.glib.out}/lib/glib-2.0/include/''
];
}
-2
View File
@@ -1,2 +0,0 @@
[toolchain]
channel = "stable"