mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
19 lines
495 B
Nix
19 lines
495 B
Nix
# Run `nix-shell` to be able
|
|
# to build Grin on NixOS.
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "grin";
|
|
|
|
buildInputs = with pkgs; [
|
|
ncurses cmake clang
|
|
];
|
|
|
|
shellHook = ''
|
|
LD_LIBRARY_PATH=${pkgs.ncurses}/lib/:$LD_LIBRARY_PATH
|
|
LD_LIBRARY_PATH=${pkgs.zlib}/lib/:$LD_LIBRARY_PATH
|
|
LIBRARY_PATH=${pkgs.zlib}/lib/:$LIBRARY_PATH
|
|
LD_LIBRARY_PATH=${pkgs.llvmPackages.libclang}/lib/:$LD_LIBRARY_PATH
|
|
CXX=${pkgs.clang}/bin/clang++
|
|
'';
|
|
}
|