From a0b40ed6784ae8063297a5f01b5942ecbabb8536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Tue, 10 Sep 2024 12:14:24 +0200 Subject: [PATCH] casper-node: removeReferencesTo --- pkgs/casper-node/2.nix | 8 +++++++- pkgs/casper-node/default.nix | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/pkgs/casper-node/2.nix b/pkgs/casper-node/2.nix index 2b5c817..9e332a2 100644 --- a/pkgs/casper-node/2.nix +++ b/pkgs/casper-node/2.nix @@ -4,6 +4,8 @@ , cmake , pkg-config , openssl +, removeReferencesTo +, cargo }: rustPlatform.buildRustPackage { pname = "casper-node"; @@ -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/"; diff --git a/pkgs/casper-node/default.nix b/pkgs/casper-node/default.nix index 6747f51..64c9c7e 100644 --- a/pkgs/casper-node/default.nix +++ b/pkgs/casper-node/default.nix @@ -4,6 +4,8 @@ , cmake , pkg-config , openssl +, removeReferencesTo +, cargo }: rustPlatform.buildRustPackage rec { pname = "casper-node"; @@ -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/";