Unverified Commit 0691f482 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

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

parents dc1979b1 734b7fff
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
{ 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
  '';