Nix Flakes#363
Draft
cab404 wants to merge 1 commit intobmstu-iu9:masterfrom
Draft
Conversation
Mazdaywik
reviewed
Oct 17, 2021
Author
|
Спасибо, добавлю!
On October 17, 2021 1:48:43 PM GMT+03:00, Alexander Konovalov ***@***.***> wrote:
***@***.*** commented on this pull request.
…
> +
+ src = ./.;
+ patchPhase = ''
+ runHook prePatchPhase
+ find -type f -exec sed -i '1,1s\#!/bin/bash\#!${pkgs.bash}/bin/bash\' '{}' ';'
+ runHook postPatchPhase
+ '';
+ buildPhase = ''
+ runHook preBuildPhase
+ ./bootstrap.sh
+ runHook postBuildPhase
+ '';
+ installPhase = ''
+ runHook preInstallPhase
+ mkdir -p $out
+ mv bin $out
Если я правильно понял этот сценарий, при установке Вы копируете только папку `bin`. Помимо `bin` нужно копировать папку `lib` и файл `c-plus-plus.conf.sh`. Скрипты из `bin` инклюдят `c-plus-plus.conf.sh`, который лежит в папке выше и предполагают наличие `lib` со всем её содержимым рядом с `bin`.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#363 (review)
|
Author
|
@Mazdaywik Что бы могло значить "INTERNAL ERROR: can't find signature in executable"? |
Member
|
А как вам удалось эту ошибку получить? Исполнимый файл, построенный компилятором, состоит из префикса-интерпретатора и интерпретируемого кода. Префикс-интерпретатор открывает Сигнатура должна располагаться по смещению, кратному 4096. Вы каким-то образом получили один только префикс-интерпретатор без интерпретируемого хвоста, либо поехало смещение. Вы |
Author
|
Вообще я делал стрип. Он роняет тут экзешники, получается? |
Member
|
Получается, что да. |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Для того, чтобы проверить, нужно установить Nix (если его нет), и запустить следующую команду:
Это скачает и установит все зависимости и соберёт refal.
@potan my work here is (almost) done :D