Merge pull request #130319 from LibreCybernetics/fix-idris2

idris2: fix packagePaths issue
This commit is contained in:
Mario Rodas 2021-07-15 22:49:12 -05:00 committed by GitHub
commit c3400eb762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,8 @@ stdenv.mkDerivation rec {
postInstall = let
includedLibs = [ "base" "contrib" "network" "prelude" ];
name = "${pname}-${version}";
packagePaths = builtins.map (l: "$out/${name}/" + l) includedLibs;
packagePaths =
builtins.map (l: "$out/${name}/${l}-${version}") includedLibs;
additionalIdris2Paths = builtins.concatStringsSep ":" packagePaths;
in ''
# Remove existing idris2 wrapper that sets incorrect LD_LIBRARY_PATH