mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #202153 from NickCao/scdoc-cross
scdoc: fix cross compilation by setting HOST_SCDOC
This commit is contained in:
commit
d30627c25c
@ -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 New Issue
Block a user