forked from fedimint/fedimint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
46 lines (45 loc) · 1.14 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
let
nix-pinned = builtins.fetchTarball {
name = "nixos-22.05";
url = "https://github.com/NixOS/nixpkgs/archive/bd95ace2d31564c0caceda68a8c2ec1b97f7116e.tar.gz";
};
in
{ pkgs ? import (nix-pinned) {}}:
let
clightning-dev = pkgs.clightning.overrideAttrs (oldAttrs: {
configureFlags = [ "--enable-developer" "--disable-valgrind" ];
} // pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
NIX_CFLAGS_COMPILE="-Wno-stringop-truncation";
});
bitcoind-patch-darwin = pkgs.bitcoind.overrideAttrs (oldAttrs: {
doCheck = !(pkgs.stdenv.isDarwin && pkgs.stdenv.isAarch64);
});
in
pkgs.mkShell {
packages = with pkgs; [
bc
openssl
pkg-config
perl
clippy
rustfmt
rustc
cargo
rust-analyzer
bitcoind-patch-darwin
clightning-dev
jq
procps
tmux
tmuxinator
] ++ lib.optionals stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Security
];
OPENSSL_DIR = "${pkgs.openssl.dev}";
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
shellHook = ''
# filter out global cargo installation so it doesn't interfere
PATH="$(echo $PATH | sed "s/:[^:]*\.cargo[^:]*//g")"
'';
}