Merge pull request #202153 from NickCao/scdoc-cross

scdoc: fix cross compilation by setting HOST_SCDOC
This commit is contained in:
Guillaume Girol 2022-11-26 19:06:30 +00:00 committed by GitHub
commit d30627c25c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; {