mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
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.
17 lines
265 B
Nix
17 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
|
|
];
|
|
}
|