diff --git a/pkgs/by-name/st/starpls-bin/package.nix b/pkgs/by-name/st/starpls-bin/package.nix index c6106ebd6126..ada91ae6bc42 100644 --- a/pkgs/by-name/st/starpls-bin/package.nix +++ b/pkgs/by-name/st/starpls-bin/package.nix @@ -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 '';