fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Noah Hellmanadd contrib/shell.nixd7f413bee

master
905 B33 linesraw
1# Environment containing all dependencies needed for
2# - building fish,
3# - building documentation,
4# - running all tests,
5# - formatting and checking lints.
6#
7# enter interactive bash shell:
8#   nix-shell contrib/shell.nix
9#
10# using system nixpkgs (otherwise fetches pinned version):
11#   nix-shell contrib/shell.nix --arg pkgs 'import <nixpkgs> {}'
12#
13# run single command:
14#   nix-shell contrib/shell --run "cargo xtask check"
15{ pkgs ? (import (builtins.fetchTarball {
16  url = "https://github.com/NixOS/nixpkgs/archive/nixos-25.11.tar.gz";
17  sha256 = "1ia5kjykm9xmrpwbzhbaf4cpwi3yaxr7shl6amj8dajvgbyh2yh4";
18}) { }), ... }:
19pkgs.mkShell {
20  buildInputs = [
21    (pkgs.python3.withPackages (pyPkgs: [ pyPkgs.pexpect ]))
22    pkgs.cargo
23    pkgs.clippy
24    pkgs.cmake
25    pkgs.gettext
26    pkgs.pcre2
27    pkgs.procps # tests use pgrep/pkill
28    pkgs.ruff
29    pkgs.rustc
30    pkgs.rustfmt
31    pkgs.sphinx
32  ];
33}