Merge pull request #202153 from NickCao/scdoc-cross
scdoc: fix cross compilation by setting HOST_SCDOC
This commit is contained in:
commit
d30627c25c
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromSourcehut }:
|
||||
{ lib, stdenv, fetchFromSourcehut, buildPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "scdoc";
|
||||
|
@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
|
|||
--replace "/usr/local" "$out"
|
||||
'';
|
||||
|
||||
makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||
"HOST_SCDOC=${buildPackages.scdoc}/bin/scdoc"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue