-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
[WIP/RFC] make-derivation: default name if pname and version are both set #41627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c313e07
make-derivation: use pname-version as default name if both are present
Synthetica9 b5d7bb4
treewide: removed name from a few pythonpackages defining pname and v…
Synthetica9 ef6ece0
treewide: removed name from packages that already defined pname and v…
Synthetica9 af1b4f4
gnome3: don't re-define lib.versions.majorMinor and implement fetchGn…
Synthetica9 e3d9978
gnome3: make some refinements to fetchGnomeSource
Synthetica9 02f45b6
Make fetchGnomeSource availabable as top-level pkg infra
Synthetica9 0c1d5d1
make-derivation: get position info from version
Synthetica9 e0d2348
make-derivation: add check that the name is consistent with pname and…
Synthetica9 6bc5d26
make-derivation: fix for python packages
Synthetica9 0f5c2ae
fictx: remove `name` from all derivations, add a consistent way to fe…
Synthetica9 33932e3
mk-python-derivation: re-add version as argument to mkDerivation
Synthetica9 b03d631
fcitx-unikey: split name into pname and version
Synthetica9 7cd8034
pip: fix bootstrapped-pip
Synthetica9 a2d4ae2
fcitx-qt5: fix
Synthetica9 b6d8df3
fcitx-libpinyin: fix
Synthetica9 44be91f
fcitx-mozc: fix
Synthetica9 ee16a1d
mk-python-derivation: try a different fix
Synthetica9 26adf6f
ibus: fix build
Synthetica9 f8e3964
pkgs/applications/altcoins: fixup names
Synthetica9 0786975
pkgs/applications/audio: fixup names
Synthetica9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update "pos" above as well? It is used to find line numbers in traces. I think we need to also look for "version" before name for this to work correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would that be something like
builtins.unsafeGetAttrPos "pname" attrs?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but I actually think version would be better because it's more frequently used than pname.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does 0c1d5d1 look good to you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to have an assertion for
name == "${pname}-${version}"if all of the three are setThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah, that would make sense. Adding that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@globin e0d2348
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
attrs ? pname && attrs ? version.