-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix: update, use fenix and split flake
- Loading branch information
Showing
4 changed files
with
98 additions
and
110 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ps}: let | ||
kdTree = ./kdtree.nix; | ||
geojsonPydantic = ./geojson-pydantic.nix; | ||
in [ | ||
ps.black | ||
ps.flake8 | ||
ps.intervaltree | ||
ps.isort | ||
ps.mock | ||
ps.numpy | ||
ps.pillow | ||
ps.psycopg | ||
ps.psycopg2 | ||
ps.pyyaml | ||
ps.requests | ||
ps.websockets | ||
(ps.callPackage (import kdTree) {}) | ||
(ps.callPackage (import geojsonPydantic) {inherit (ps) pydantic;}) | ||
|
||
# DATA SCIENCE | ||
ps.ipykernel | ||
ps.jupyterlab | ||
ps.shapely | ||
ps.pyproj | ||
ps.ipympl | ||
ps.matplotlib | ||
ps.networkx | ||
|
||
ps.progress | ||
ps.tqdm | ||
ps.ipywidgets | ||
|
||
# TOOLS | ||
ps.python-lsp-server | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{stdenv}: | ||
stdenv.mkDerivation { | ||
name = "osrd-dev-scripts"; | ||
src = ../scripts; | ||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp -rv * $out/bin | ||
# Create symlinks for scripts without the extension (.py, .sh, etc...) for ease of use | ||
for script in $out/bin/*; do | ||
ln -s $script $out/bin/$(basename $script | cut -d. -f1) | ||
done | ||
chmod +x $out/bin/* | ||
''; | ||
} |