-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
Package request: buck2 #226677
Comments
Didn't try it out myself, but this may work https://github.com/thoughtpolice/buck2-nix/blob/main/buck/nix/buck2/default.nix |
I'm getting close to publishing a PR actually :) Should be up soon. |
Update: adding packaging to the upstream flake may be the best idea for now. Either nixpkgs will need to support Rust-based packages with nightly toolchains (unlikely and for good reasons!) or Full Context: #232471 (comment) Fortunately, |
2234: Add reindeer to our nix flake (ENG-1463) r=nickgerace a=nickgerace ## Relevant Issues and PRs - `buck2` with stable Rust: facebook/buck2#265 - `buck2` package request in nixpkgs: NixOS/nixpkgs#226677 - `buck2` PR for nixpkgs (closed due to inability to add it): NixOS/nixpkgs#232471 - `reindeer` package request in nixpkgs: NixOS/nixpkgs#232693 - `reindeer` PR for nixpkgs (merged): NixOS/nixpkgs#232699 ## GIF <img src="https://media4.giphy.com/media/7NTs0UJDuYz0k/giphy.gif"/> Co-authored-by: Nick Gerace <nick@systeminit.com>
As of yesterday, I have a flake available on my Flake usage is easy. Something like the following should work where you can use {
description = "Buck2 demo";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
buck2.url = "github:thoughtpolice/buck2";
};
outputs = { self, nixpkgs, flake-utils, buck2 }:
flake-utils.lib.eachDefaultSystem (system:
let b2 = buck2.packages."${system}".buck2;
in ...
);
} You can also get a binary in your |
As of #243148, there are now buck2 binaries, thanks to the Meta team doing releases! They can be updated every two weeks easily. So that means you don't need a Flake, cache, or any expensive build steps. Please let me know if the binary doesn't work for you; I've done some light testing on NixOS, and it seems to work fine in a normal |
Two side notes:
|
Thanks for the help @thoughtpolice! I believe #243148 does close this issue since |
Project description
Metadata
Additional Notes
It's worth noting that
buck2
appears to be updating off thelatest
branch with a re-createdgit
tag upon each "release". It may be the case thatbuck2
doesn't make sense to be innixpkgs
right now, but perhaps folks have ideas on what it could look like to updatebuck2
automatically.EDIT (17 Apr 2023): I suspect the package will go in
pkgs/development/tools/build-managers
. It's also worth adding the following note from the source URL'sREADME
...The text was updated successfully, but these errors were encountered: