Commit b02060cf authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

csvquote: fix cross patching

parent c59a71f3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  coreutils,
  patsh,
}:

@@ -25,6 +26,9 @@ stdenv.mkDerivation rec {
    patsh
  ];

  # needed for cross
  buildInputs = [ coreutils ];

  makeFlags = [
    "BINDIR=$(out)/bin"
  ];
@@ -35,7 +39,7 @@ stdenv.mkDerivation rec {

  postInstall = ''
    substituteAllInPlace $out/bin/csvheader
    patsh $out/bin/csvheader -fs ${builtins.storeDir}
    patsh $out/bin/csvheader -fs ${builtins.storeDir} --path "$HOST_PATH"
  '';

  meta = with lib; {