rpcsvc-proto: fix cross-compilation
Tested pkgsCross.armv7l-hf-multiplatform.rpvscv-proto
This commit is contained in:
parent
4fb4b69d9b
commit
91493dfd8a
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, buildPackages }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "rpcsvc-proto";
|
pname = "rpcsvc-proto";
|
||||||
@ -13,8 +13,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
|
postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||||
|
substituteInPlace rpcsvc/Makefile.am \
|
||||||
|
--replace '$(top_builddir)/rpcgen/rpcgen' '${buildPackages.rpcsvc-proto}/bin/rpcgen'
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/thkukuk/rpcsvc-proto";
|
homepage = "https://github.com/thkukuk/rpcsvc-proto";
|
||||||
description = "This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc";
|
description = "This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc";
|
||||||
|
Loading…
Reference in New Issue
Block a user