summary refs log tree commit diff
path: root/shell.nix
blob: 77deb2c9a7dd7c830563f97fb0f5a59417b33006 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: MIT

{ config ? import nix/eval-config.nix {} }: with config.pkgs;

mkShell {
  nativeBuildInputs = [ b4 reuse rustfmt ];

  shellHook = ''
    declare -igx GIT_CONFIG_COUNT
    export "GIT_CONFIG_KEY_''${GIT_CONFIG_COUNT:-0}"=b4.midmask
    export "GIT_CONFIG_VALUE_''${GIT_CONFIG_COUNT:-0}"=https://spectrum-os.org/lists/archives/spectrum-devel/%s
    GIT_CONFIG_COUNT+=1
  '';
}