-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathshell.nix
25 lines (23 loc) · 836 Bytes
/
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
let
nixpkgs = import <nixpkgs> {
config.allowUnfree = false;
overlays = [ ];
};
platform_dependencies = if nixpkgs.stdenv.hostPlatform.system == "x86_64-darwin" then nixpkgs.darwin.apple_sdk.frameworks.Security
else "";
in
with nixpkgs;
stdenv.mkDerivation rec {
name = "vanityPGP";
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = [
# List packages that should be on the path
# You can search for package names using nix-env -qaP | grep <name>
stdenv clang nettle pkg-config capnproto sqlite rustc cargo llvm
llvmPackages.libclang platform_dependencies
];
LIBCLANG_PATH="${llvmPackages.libclang}/lib";
shellHook = ''
export NIX_SHELL_ENV=${name}
'';
}