starpls-bin: Fix dynamically linked dependencies (#345315)

This commit is contained in:
Peder Bergebakken Sundt 2024-10-07 01:57:19 +02:00 committed by GitHub
commit 0691f482df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }:
{ lib, stdenv, fetchurl, autoPatchelfHook }:
stdenv.mkDerivation (finalAttrs: {
pname = "starpls-bin";
@ -19,6 +19,14 @@ stdenv.mkDerivation (finalAttrs: {
dontConfigure = true;
dontBuild = true;
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isElf [
autoPatchelfHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isElf [
stdenv.cc.cc.lib
];
installPhase = ''
install -D $src $out/bin/starpls
'';