forked from crev-dev/cargo-crev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
24 lines (20 loc) · 835 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
# Run `nix-shell` to be able
# to build Grin on NixOS.
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "rdedup";
buildInputs = with pkgs; [
ncurses cmake gcc openssl libsodium lzma libsodium clang_39 zlib
];
shellHook = ''
LD_LIBRARY_PATH=${pkgs.ncurses}/lib/:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=${pkgs.openssl}/lib/:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=${pkgs.libsodium}/lib/:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=${pkgs.lzma}/lib/:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=${pkgs.zlib.dev}/lib/:$LD_LIBRARY_PATH
LIBRARY_PATH=${pkgs.zlib}/lib/:$LIBRARY_PATH
PKG_CONFIG_PATH=${pkgs.libsodium.dev}/lib/pkgconfig:$PKG_CONFIG_PATH
PKG_CONFIG_PATH=${pkgs.lzma.dev}/lib/pkgconfig:$PKG_CONFIG_PATH
LD_LIBRARY_PATH=${pkgs.llvmPackages.libclang}/lib/:$LD_LIBRARY_PATH
'';
}