mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
csvquote: fix cross patching
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user