about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEvan Stoll <evanjsx@gmail.com>2020-01-11 13:16:56 -0500
committerEvan Stoll <evanjsx@gmail.com>2020-01-12 15:55:56 -0500
commit22674e9b4388cb79fd88a45cb739871d35ec8056 (patch)
tree7d953ac6ce01414765d7ea78ae501821313a4663
parent315329fec4f0208dd903b966bd40036964766cb9 (diff)
downloadnixlib-22674e9b4388cb79fd88a45cb739871d35ec8056.tar
nixlib-22674e9b4388cb79fd88a45cb739871d35ec8056.tar.gz
nixlib-22674e9b4388cb79fd88a45cb739871d35ec8056.tar.bz2
nixlib-22674e9b4388cb79fd88a45cb739871d35ec8056.tar.lz
nixlib-22674e9b4388cb79fd88a45cb739871d35ec8056.tar.xz
nixlib-22674e9b4388cb79fd88a45cb739871d35ec8056.tar.zst
nixlib-22674e9b4388cb79fd88a45cb739871d35ec8056.zip
broot: fix hardlinks during postPatch phase
- add coreutils dependency
-rw-r--r--pkgs/tools/misc/broot/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/misc/broot/default.nix b/pkgs/tools/misc/broot/default.nix
index 63d5ff69e790..1391ae5fee5a 100644
--- a/pkgs/tools/misc/broot/default.nix
+++ b/pkgs/tools/misc/broot/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, rustPlatform, fetchFromGitHub }:
+{ stdenv, rustPlatform, fetchFromGitHub, coreutils }:
 
 rustPlatform.buildRustPackage rec {
   pname = "broot";
@@ -13,6 +13,10 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "09gnyj97akychin1axp9kcww3c04xx7x1qnplhs2yxfki62r4y2b";
 
+  postPatch = ''
+    substituteInPlace src/verb_store.rs --replace '"/bin/' '"${coreutils}/bin/'
+  '';
+
   meta = with stdenv.lib; {
     description = "An interactive tree view, a fuzzy search, a balanced BFS descent and customizable commands";
     homepage = "https://dystroy.org/broot/";