Skip to content

Commit

Permalink
Make tezos patches configurable
Browse files Browse the repository at this point in the history
Problem: In one of our projects we want to provide batched static
tezos-binaries.

Solution: Make patches configurable.
  • Loading branch information
rvem committed Feb 24, 2020
1 parent 991995d commit a13b9b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2019 TQ Tezos <https://tqtezos.com/>
#
# SPDX-License-Identifier: MPL-2.0
{ pkgs ? import <nixpkgs> { }, timestamp ? "19700101" }:
{ pkgs ? import <nixpkgs> { }, timestamp ? "19700101", patches ? [] }:
with pkgs;

let
Expand All @@ -18,7 +18,7 @@ let
master = {
rev = "60b977cd";
sha256 = "1v9v5z5i3cs9jw48m3xx9w4fqkns37nn464fr7hds7wgmwfmf1sp";
patchFile = ./nix/fix-master.patch;
patches = [ ./nix/fix-master.patch ] ++ patches;
inherit protocols;
};
static-nix = import ./nix/static.nix;
Expand Down
2 changes: 1 addition & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ let

minimumOCamlVersion = "4.07";

patches = [ branchInfo.patchFile ];
patches = branchInfo.patches;
src = fetchgit {
url = "https://gitlab.com/tezos/tezos.git/";
rev = branchInfo.rev;
Expand Down

0 comments on commit a13b9b2

Please sign in to comment.