Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cardano-http-bridge to environment of stack --nix #70

Merged
merged 1 commit into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@

{
inherit pkgs;

cardano-http-bridge = import ./nix/cardano-http-bridge.nix { inherit pkgs; };
}
23 changes: 23 additions & 0 deletions nix/cardano-http-bridge.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ nixpkgs ? fetchTarball channel:nixos-19.03
, pkgs ? import nixpkgs {}
}:

with pkgs;

rustPlatform.buildRustPackage {
name = "cardano-http-bridge";

src = fetchFromGitHub {
owner = "input-output-hk";
repo = "cardano-http-bridge";
fetchSubmodules = true;
rev = "b81c805e0fe62e6b8eacdc11fee573fa5668cbc8";
sha256 = "0vkg1hgcg9xqwzi9a1rap12sgyvc7ppnf89rqlf8pgsz3akzr4qd";
};

buildInputs = [ sqlite protobuf rustfmt ];

PROTOC = "${protobuf}/bin/protoc";

cargoSha256 = "19g5fy8af65vd9rl66058c67nlrz7r6mjd0cy83865d7q81hdl8r";
}
1 change: 1 addition & 0 deletions nix/stack-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ haskell.lib.buildStackProject {

buildInputs = [
zlib gmp ncurses lzma openssl git
walletPackages.cardano-http-bridge
] ++ (lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Cocoa CoreServices libcxx libiconv ]));

phases = ["nobuildPhase"];
Expand Down