-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
pijul: 0.12.0 -> 1.0.0-alpha #102968
pijul: 0.12.0 -> 1.0.0-alpha #102968
Conversation
Builds and works from here, thanks! I'm trying to import nixpkgs now :). |
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.
Diff LGTM. Built with gitImportSupport
and was able to successfully import one of my projects into anu
.
Can't wait for more docs to show up.
, CoreServices | ||
, Security |
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.
These are darwin-specific; might be best to leave them as optional? (Not really sure how this is normally handled, first time I have seen this platform specific dependencies)
, CoreServices | |
, Security | |
, CoreServices ? null | |
, Security ? null |
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.
Isn't stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ]
sufficient? There are some similar instances in nixpkgs. I'd like to hear from experts whether this is idiomatic or not too, though.
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 tried building it on NixOS and had an issue of insufficient arguments. I also don't know how it is normally handled. :C
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.
Ah, I see. Thank you for sharing your situation.
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.
Strange, I built it on NixOS just fine without 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.
As reference, I am on NixOS 20.09 with nix-unstable
as the user channel. I used nix-build -E "with import <nixpkgs> {}; callPackage ./anu.nix { libclang = llvmPackages.libclang; }"
to build this expression and that required the suggested changes.
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 hear from experts whether this is idiomatic or not too, though.
I don't think this is idiomatic, but I'm definitely not an expert.
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.
Indeed, passing dependencies in regardless of the platform is the idiomatic approach. We don't reference platform specific dependencies with pkgs.hello instead of passing them in as arguments either.
This package is missing manpages. Does upstream have them and we just do not package them? |
@andir I don't think there's any but the barest documentation yet. https://anu.dev/documentation/ only has the "Why" and "Getting Started" pages. https://twitter.com/pijul_org/status/1324450002899509253 |
I am totally planning on writing docs. Now that the correctness is more or less there, and that Anu has been tested on a few large-scale repos, and we have a somewhat functional "Nest 1.0", this is now my top priority, and I do have some time to work on it. |
Just noting here: I've opened a discussion on the appropriate repository on the Anu nest to fix building on aarch64. |
If I may, I would like to ask you folks to wait a little bit before merging this PR: the new name is not set in stone, and I haven't yet announced it officially. |
Now you can. |
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.
It might be best to leave the import of darwin specific libraries as it was implemented on this expression.
(Requiring darwin and getting the specific libraries from darwin)
is the new pijul version able to read repos created with the old/0.12 version? if not then maybe we should keep the old version around? |
Motivation for this change
🎉 https://pijul.org/posts/2020-11-07-towards-1.0/
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)cc @P-E-Meunier