diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-04-27 22:39:58 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-05-16 00:21:21 +0000 |
commit | c71ab32a678a98ce1ec069956bc55d6ea606f55c (patch) | |
tree | 4a026e21bae3c09815613a4d66bf535c5e1fc449 /pkgs/test/cross | |
parent | 27edd9efb3cea58629091778fcbf1c3ca994f075 (diff) |
pkg-config-wrapper: Init
This fixes longstanding build issues
Diffstat (limited to 'pkgs/test/cross')
-rw-r--r-- | pkgs/test/cross/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/test/cross/default.nix b/pkgs/test/cross/default.nix index e65805c6a401..c5a241437732 100644 --- a/pkgs/test/cross/default.nix +++ b/pkgs/test/cross/default.nix @@ -91,6 +91,20 @@ let pkgFun = pkgs: pkgs.hello; }; + pkg-config = {platformFun, crossPkgs, emulator}: crossPkgs.runCommand + "test-pkg-config-${crossPkgs.hostPlatform.config}" + { + depsBuildBuild = [ crossPkgs.pkgsBuildBuild.pkg-config ]; + nativeBuildInputs = [ crossPkgs.pkgsBuildHost.pkg-config crossPkgs.buildPackages.zlib ]; + depsBuildTarget = [ crossPkgs.pkgsBuildTarget.pkg-config ]; + buildInputs = [ crossPkgs.zlib ]; + NIX_DEBUG = 7; + } '' + mkdir $out + ${crossPkgs.pkgsBuildBuild.pkg-config.targetPrefix}pkg-config --cflags zlib > "$out/for-build" + ${crossPkgs.pkgsBuildHost.pkg-config.targetPrefix}pkg-config --cflags zlib > "$out/for-host" + ! diff "$out/for-build" "$out/for-host" + ''; }; in { |