Conversation
|
|
|
I use |
|
@vcunat if you look at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/go-modules/generic/default.nix do you see anything that can breaks default output for Go builds? |
|
I don't have much to add except that it's going to be annoying for users if they expect to install by the attribute path. |
|
I looked back how |
|
Yes, previously only the Not being able to install by attribute path will indeed annoy users but I don't think including all outputs in the same derivation is the way to go. I think the current design is technically more superior. @kamilchm I think your work in #16017 was an awesome start. Now I think we just need to bring back the go2nix = callPackage ../development/tools/go2nix { };and go2nix = goPackages.bin;I think this will give us the following benefits:-
|
|
I'll try to do it tommorow. |
|
Awesome, thanks! |
|
In what cases do you find yourself re-using the "out" of a binary package ? I would prefer if the IMO the |
|
Another though I have is to create 2 separate forms:
What do you think about moving this discussion to the mailing list? |
|
@zimbatm the difference between binary packages and libraries is not so clear cut. Some binaries are also libraries. Take I totally understand your point about projects that use multiple languages. This is why I'm a big fan of #16017. I agree that stuffing full derivations of all the packages of a particular language in one file is bad and a maintenance nightmare. However, IMHO having a Projects that are not clearly defined do not have to go under one language namespace. If they have different libraries for different languages then the respective languages can also create packages under their own namespaces that point to the relevant path of that package's source tree. The binary of the package itself can then directly go in I wasn't suggesting that we include multiple derivations of the same package like |
|
@kamilchm moving this discussion to the mailing list sounds good. In the meantime if it's not too much trouble would you care to document how the current |
|
Yep, I'm taking on docs. |
|
Alright. In any case I don't want to be holding this PR with my ranting :) Avoiding the combinatoric issues we where having before is the real win for me. |
|
@zimbatm I totally agree :) |
|
@kamilchm I suppose so, but I'm not entirely sure. |
Well, there is "out" and "bin" in that definition. IIRC |
|
back to:
I think we should better describe who are the users.
So the steps I can do next:
How about that? CC: @cstrahan |
go2nix compatible with #16017
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)