summary refs log tree commit diff
path: root/shell.nix
blob: bcb3de9bfd28fa6cd0ea7e0ac7b58d06db330834 (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

import lib/eval-config.nix ({ config, ... }: 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
  '';
})