hare: unstable-2023-04-23 -> unstable-2023-10-22; harec: unstable-2023-04-23 -> unstable-2023-10-23#266456
hare: unstable-2023-04-23 -> unstable-2023-10-22; harec: unstable-2023-04-23 -> unstable-2023-10-23#266456pbsds merged 1 commit intoNixOS:masterfrom
Conversation
|
Output of Result of 1 package marked as broken and skipped:
1 package failed to build:
2 packages built:
The |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2899 |
majiru
left a comment
There was a problem hiding this comment.
The comments around the temporary changes are nice and the refactoring seems like an improvement to me.
|
Due to the himitsu breakage this is likely blocked until after the 23.11 branch-of, since himitsu 0.4 looks to be a breaking change. Feel free to ping me after the branch-of 😃 |
No worries. Should I do something to this PR to indicate that it is waiting for the |
|
I don't think we have a convention for such. I've been toying with the idea of proposing a post-ZHF merge queue, and a wait-for-maintainer-feedback-but-a-committer-wants-to-merge-it merge queue. |
|
@majiru, @pbsds, I was thinking about the changes I've made to As of now:
Are those acceptable changes? Note: Do feel free to ignore this comment, if this is considered a misused |
|
@onemoresuza Maybe you should update this to latest version (sorry for ping if it anoy you) |
|
No worries, @starzation. I'm planning to do this, but firstly this PR must be merged: the most recent versions of |
starzation
left a comment
There was a problem hiding this comment.
homepage should be use https, other than these is good
I think this is fine. It's still overrideable, it just requires a bit more effort. And there is always the possibility to change this later @ofborg build hare hare.passthru.tests harec harec.passhtru.tests |
|
@starzation, I think this PR would be a good place for the creation of the Would you be okay if I brought that change to this PR and add you as a co-author of this commit? If so, could you please give the email to be appended to your username on the git trailer, i. e., either a real email or the github no-reply one1? Footnotes
|
Sure, I'm okay with that. You can use this email address |
There was a problem hiding this comment.
Those don't work in makeFlags?
There was a problem hiding this comment.
With the exception of HARECACHE and BINOUT, they would. I've put them all together in makeFlagsArray so that the make flags are not split between makeFlags and makeFlagsArray.
But if it the ones that work on makeFlags should necessarily be in it, I can move them there.
There was a problem hiding this comment.
A note: github's outdated warning is because the file path has changed from pkgs/development/compilers/hare/hare/default.nix to pkgs/development/compilers/hare/default.nix. The makeFlagsArray has not changed.
…3-04-23 -> unstable-2023-10-23 And also the following refactoring: hare: 1. Replace `NIX_BUILD_TOP` usage with `mktemp` 2. Enable parallel building 3. Get rid of `config-template.mk`, by using `makeFlagsArray` instead 4. Move `wrapProgram` call to `postFixup` 5. Set the `LOCALVER` environment variable to `nix`, so that the `hare version` command outputs `dev-nix`[1] 6. Set `meta` attribute `mainProgram` 7. Make the package accessible through `all-packages.nix` instead of `aliases.nix` 8. Move package path from `pkgs/development/compilers/hare/hare` to `pkgs/development/compilers/hare`, since the scope is now made at `pkgs/top-level/hare-packages.nix` harec: 1. Remove `hardeningDisable = [ "fortify" ];`, since both harec and hare compile normally with it enabled 2. Enable parallel building 3. Set `meta` attribute `mainProgram` 4. Make the package accessible through `all-packages.nix` instead of `aliases.nix` 5. Move package path from `pkgs/development/compilers/hare/harec` to `pkgs/development/compilers/harec`, since the scope is now made at `pkgs/top-level/hare-packages.nix` harePackages: 1. Move hare packages scope from `pkgs/development/compilers/hare/default.nix` to `pkgs/top-level/hare-packages.nix` 2. Remove `hare` and `harec` from `aliases.nix`, moving them to `all-packages.nix` 3. Change the `callPackage` argument in `all-packages.nix` from `../development/compilers/hare` to `./hare-packages.nix` [1]: https://git.sr.ht/~sircmpwn/hare/tree/1048620a7a25134db370bf24736efff1ffcb2483/item/scripts/version#L2 Co-authored-by: starzation <nixpkgs@starzation.net>
|
It was just a coincidence. A new evaluation succeeded. |
Description of changes
Update hare and harec to the refs on Alpine and do the following refactoring:
hare:
NIX_BUILD_TOPusage withmktempconfig-template.mk, by usingmakeFlagsArrayinsteadwrapProgramcall topostFixupLOCALVERenvironment variable tonix, so that thehare versioncommand outputsdev-nix1metaattributemainProgramall-packages.nixinstead ofaliases.nixpkgs/development/compilers/hare/haretopkgs/development/compilers/hare, since the scope is now made atpkgs/top-level/hare-packages.nixharec:
hardeningDisable = [ "fortify" ];, since both harec and harecompile normally with it enabled
metaattributemainProgramall-packages.nixinstead ofaliases.nixpkgs/development/compilers/hare/harectopkgs/development/compilers/harec, since the scope is now made atpkgs/top-level/hare-packages.nixharePackages:
pkgs/development/compilers/hare/default.nixtopkgs/top-level/hare-packages.nixhareandharecfromaliases.nix, moving them toall-packages.nixcallPackageargument inall-packages.nixfrom../development/compilers/hareto./hare-packages.nixCo-authored-by: starzation nixpkgs@starzation.net
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)