Merge pull request #234899 from figsoda/pkg-config

treewide: move pkg-config to nativeBuildInputs
This commit is contained in:
Nick Cao
2023-05-29 20:45:53 -06:00
committed by GitHub
2 changed files with 4 additions and 6 deletions
@@ -1,12 +1,12 @@
{ lib
, stdenv
, callPackage
, pkg-config
, swift
, swiftpm
, swiftpm2nix
, Foundation
, XCTest
, pkg-config
, sqlite
, ncurses
, CryptoKit
@@ -28,15 +28,13 @@ stdenv.mkDerivation {
inherit (sources) version;
src = sources.sourcekit-lsp;
nativeBuildInputs = [ swift swiftpm ];
nativeBuildInputs = [ pkg-config swift swiftpm ];
buildInputs = [
Foundation
XCTest
pkg-config
sqlite
ncursesInput
]
++ lib.optionals stdenv.isDarwin [ CryptoKit LocalAuthentication ];
] ++ lib.optionals stdenv.isDarwin [ CryptoKit LocalAuthentication ];
configurePhase = generated.configure + ''
swiftpmMakeMutable indexstore-db
@@ -365,12 +365,12 @@ in stdenv.mkDerivation (commonAttrs // {
pname = "swiftpm";
nativeBuildInputs = commonAttrs.nativeBuildInputs ++ [
pkg-config
swift
swiftpm-bootstrap
];
buildInputs = [
ncursesInput
pkg-config
sqlite
XCTest
]