Add a guix package description#634
Draft
iamleeg wants to merge 2 commits into
Draft
Conversation
Signed-off-by: Graham Lee <grahamlee@acm.org>
1. Add which as a dependency 2. copy gnustep-config, edit its $SHELL, and call the patched version 3. overwrite the FS layout to use folders in the staging area Signed-off-by: Graham Lee <grahamlee@acm.org>
Contributor
|
I have some questions/thoughts.
|
Contributor
Author
|
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.
The new file
guix.scmlets people who checkout the library locally create a shell environment in guix with all necessary dependencies, and build their local version as a package. Commands:guix shell(orguix shell -CPto get a container environment without access to packages installed in your profile)gnustep-basefrom this checkout:guix build -f guix.scmThis can form the basis for addingThere's already a pull request to guix on codeberg to package gnustep libraries upstream; this PR makes local gnustep-base development on guix easier.gnustep-baseto the guix package list at gnu/packages/gnustep.scm.Some notes on the implementation:
SHELL=/bin/sh, which doesn't exist in the build environment, so I work around that here. It would be better to patch tools-make so that it honours $SHELL; people who want to use /bin/sh can set the variable.whichto find commands, so I've added that as a dependency, but we could remove that if the Makefiles use thecommandshell built-in instead.guix.scmoverwrites all the FS layout variables relative to the$outbase folder for the package.