Merge pull request #261616 from mimame/fix-coursier

coursier: Fix LD path for libz.so.1

authored by

Weijia Wang and committed by
GitHub
a63c5083 964a525d

+18 -4
+18 -4
pkgs/development/tools/coursier/default.nix
··· 1 1 { lib, stdenv, fetchurl, makeWrapper, jre, writeScript, common-updater-scripts 2 - , coreutils, git, gnused, nix, nixfmt }: 2 + , coreutils, git, gnused, nix, zlib }: 3 3 4 + let 5 + libPath = lib.makeLibraryPath [ 6 + zlib # libz.so.1 7 + ]; 8 + in 4 9 stdenv.mkDerivation rec { 5 10 pname = "coursier"; 6 11 version = "2.1.7"; 7 12 8 13 src = fetchurl { 9 14 url = "https://github.com/coursier/coursier/releases/download/v${version}/coursier"; 10 - sha256 = "aih4gkfSFTyZtw61NfB2JcNjfmxYWi1kWNGooI+110E="; 15 + hash = "sha256-aih4gkfSFTyZtw61NfB2JcNjfmxYWi1kWNGooI+110E="; 11 16 }; 17 + 18 + dontUnpack = true; 12 19 13 20 nativeBuildInputs = [ makeWrapper ]; 14 21 15 - buildCommand = '' 22 + installPhase = '' 23 + runHook preInstall 24 + 16 25 install -Dm555 $src $out/bin/cs 17 26 patchShebangs $out/bin/cs 18 - wrapProgram $out/bin/cs --prefix PATH ":" ${jre}/bin 27 + wrapProgram $out/bin/cs \ 28 + --prefix PATH ":" ${lib.makeBinPath [ jre ]} \ 29 + --prefix LD_LIBRARY_PATH ":" ${libPath} 30 + 31 + runHook postInstall 19 32 ''; 20 33 21 34 passthru.updateScript = writeScript "update.sh" '' ··· 38 51 description = "Scala library to fetch dependencies from Maven / Ivy repositories"; 39 52 license = licenses.asl20; 40 53 maintainers = with maintainers; [ adelbertc nequissimus ]; 54 + platforms = platforms.all; 41 55 }; 42 56 }