b2a83e3c95
update.py and its companion update-shell.nix need to know where they are, else they can't find the root default.nix of Nixpkgs. Because of this, I further added a small piece of documentation about those path-dependent pieces of code.
16 lines
265 B
Nix
16 lines
265 B
Nix
{ pkgs ? import ../../../../.. { } }:
|
|
|
|
# Ideally, pkgs points to default.nix file of Nixpkgs official tree
|
|
with pkgs;
|
|
let
|
|
pyEnv = python3.withPackages (ps: [ ps.GitPython ]);
|
|
in
|
|
|
|
mkShell {
|
|
packages = [
|
|
bash
|
|
pyEnv
|
|
nix
|
|
nix-prefetch-scripts
|
|
];
|
|
}
|