Skip to content

Commit

Permalink
casper-node: removeReferencesTo
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Sep 10, 2024
1 parent 67c6cec commit a0b40ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion pkgs/casper-node/2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
, cmake
, pkg-config
, openssl
, removeReferencesTo
, cargo
}:
rustPlatform.buildRustPackage {
pname = "casper-node";
Expand All @@ -19,11 +21,15 @@ rustPlatform.buildRustPackage {

cargoHash = "sha256-8EwV9n5FbjruG88nl1SKhgmm7wbYoZFQwlMe9K7KWzI=";

nativeBuildInputs = [ pkg-config cmake ];
nativeBuildInputs = [ pkg-config cmake removeReferencesTo ];
buildInputs = [ openssl.dev ];

doCheck = false;

postInstall = ''
find "$out" -type f -exec remove-references-to -t ${cargo} '{}' +
'';

meta = with lib; {
description = "Reference node for the Casper Blockchain Protocol.";
homepage = "https://casper.network/";
Expand Down
8 changes: 7 additions & 1 deletion pkgs/casper-node/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
, cmake
, pkg-config
, openssl
, removeReferencesTo
, cargo
}:
rustPlatform.buildRustPackage rec {
pname = "casper-node";
Expand All @@ -18,11 +20,15 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-AbxeP9GRH8lQsHwYiErh/SaAqu1dvTcwaasL0v7xCoU=";

nativeBuildInputs = [ pkg-config cmake ];
nativeBuildInputs = [ pkg-config cmake removeReferencesTo ];
buildInputs = [ openssl.dev ];

doCheck = false;

postInstall = ''
find "$out" -type f -exec remove-references-to -t ${cargo} '{}' +
'';

meta = with lib; {
description = "Reference node for the Casper Blockchain Protocol.";
homepage = "https://casper.network/";
Expand Down

0 comments on commit a0b40ed

Please sign in to comment.