!kjdutkOsheZdjqYmqp:nixos.org

Nixpkgs / NixOS contributions

1864 Members
NixOS 24.05 Uakari | #review-requests:nixos.org | https://nixos.org/blog/announcements.html#nixos-23.11 | https://hydra.nixos.org/jobset/nixos/trunk-combined | https://reproducible.nixos.org/ | 24.05 RMs: wegank & Mic92410 Servers

Load older messages


SenderMessageTime
21 Oct 2024
@qyliss:fairydust.spaceAlyssa Rossbut I will continue cleaning up binutils in the meantime in case we end up doing full binutils :)15:03:45
@luckytethys:matrix.orgTethys SvenssonI think it might be possible to use a unified objdump and objcopy, but it would require patches to pwntools. I'll research how feasible it would be in practice15:04:19
@qyliss:fairydust.spaceAlyssa RossThanks!15:04:25
@luckytethys:matrix.orgTethys SvenssonThe tools pwntools requires where they try do to multi-architecture stuff are: as, cpp, ld, objcopy, objdump, readelf, strip. So we would definitely not need to compile more than those15:09:10
@qyliss:fairydust.spaceAlyssa RossI'm already liking that gold isn't in there15:10:11
@emilazy:matrix.orgemily(nothing makes me feel older than thinking of gold as the shiny new linker when it's now apparently dead)15:11:06
@luckytethys:matrix.orgTethys SvenssonAh, the cpp only requires a target-specific version when running on windows. So that one is easy15:20:53
@bew:matrix.orgbew joined the room.15:24:52
@luckytethys:matrix.orgTethys Svensson

So it requires:

  • as from the gas sub-directory
  • objcopy, objdump, readelf and strip from the binutils sub-directory
  • ld from the ld sub-directory

It appears that everything from the binutils and ld subdirectories are actually multi-arch aware. Whether they work correctly and whether pwntools can be fixed to use the multi-arch versions when available is another questions.

15:25:10
@bew:matrix.orgbew Hello o/ I'm trying to add a pkg in nixpkgs, I added the file pkgs/by-name/pi/pik/package.nix that outputs a derivation, but nix build .#pik says the attr doesn't exist, what am I missing? 🤔 15:26:27
* @qyliss:fairydust.spaceAlyssa Ross
In reply to @luckytethys:matrix.org

So it requires:

  • as from the gas sub-directory
  • objcopy, objdump, readelf and strip from the binutils sub-directory
  • ld from the ld sub-directory

It appears that everything from the binutils and ld subdirectories are actually multi-arch aware. Whether they work correctly and whether pwntools can be fixed to use the multi-arch versions when available is another questions.

nods
15:28:07
@emilazy:matrix.orgemily multi-arch ld should work (IIRC that's what Xen wants) 15:29:43
@bew:matrix.orgbew
In reply to @bew:matrix.org
Hello o/ I'm trying to add a pkg in nixpkgs, I added the file pkgs/by-name/pi/pik/package.nix that outputs a derivation, but nix build .#pik says the attr doesn't exist, what am I missing? 🤔
nevermind, forgot to git add -N ....
15:30:50
@nevivurn:nevi.devnevivurn
In reply to @bew:matrix.org
Hello o/ I'm trying to add a pkg in nixpkgs, I added the file pkgs/by-name/pi/pik/package.nix that outputs a derivation, but nix build .#pik says the attr doesn't exist, what am I missing? 🤔
Did you git add the new package.nix?
Or you can do nix-build -A pik . at the git root, to avoid copying nixpkgs into your store every time.
15:31:01
@shadowrz:nixos.dev夜坂雅
In reply to @bew:matrix.org
nevermind, forgot to git add -N ....
-N 🤔
15:31:10
@emilazy:matrix.orgemily Alyssa Ross: was the review request of Ericson2314 and lovesegfault after the approvals on the VC4 PR intentional or just GitHub stuff? 15:31:56
@emilazy:matrix.orgemily(don't want to merge prematurely if it was intended)15:32:01
@luckytethys:matrix.orgTethys Svensson

Alyssa Ross: If you want I can try to see if I can add support for using those multi-arch-aware versions in upstream pwntools -- but honestly the code is already pretty convoluted and I am having a bit of a hard time making heads or tails in it.

I don't know exactly what flags I would need to add to e.g. get the multi-arch-aware objcopy to work with pwntools, and whether those options also be compatible with the non-multi-arch version.

15:32:17
@bew:matrix.orgbew
In reply to @shadowrz:nixos.dev
-N 🤔
it's for --intend-to-add, to add the file to be git-tracked, but do not stage anything yet
15:32:49
@jh-devv:matrix.orgjh-devv 🏳️‍⚧️

What is the simplest way to make an derivation that just

fetches an git repo
runs an patch script in the repo
copies all of the files to output

15:32:49
@jh-devv:matrix.orgjh-devv 🏳️‍⚧️ *

What is the simplest way to make an derivation that just

fetches an git repo
runs an patch script in the repo
copies all of the files to output not not including .git

15:33:05
@bew:matrix.orgbew
In reply to @shadowrz:nixos.dev
-N 🤔
* it's for --intend-to-add, to add the file to be git-tracked, but do not stage anything yet ;)
15:33:34
@jh-devv:matrix.orgjh-devv 🏳️‍⚧️mkDerivationNoCC but is there something even more simple15:33:59
@nevivurn:nevi.devnevivurn
In reply to @jh-devv:matrix.org

What is the simplest way to make an derivation that just

fetches an git repo
runs an patch script in the repo
copies all of the files to output not not including .git

fetchgit removes .git by default fyi
15:35:14
@jh-devv:matrix.orgjh-devv 🏳️‍⚧️
In reply to @nevivurn:nevi.dev
fetchgit removes .git by default fyi
how do I patch it?
15:35:26
@jh-devv:matrix.orgjh-devv 🏳️‍⚧️without something like mkDerivation15:35:31
@emilazy:matrix.orgemily just use mkDerivation. 15:36:05
@shadowrz:nixos.dev夜坂雅I'm not sure why you'd need not to use mkDerivation, I used to just add postBuild to fetchgit.15:37:02
@qyliss:fairydust.spaceAlyssa Ross
In reply to @emilazy:matrix.org
Alyssa Ross: was the review request of Ericson2314 and lovesegfault after the approvals on the VC4 PR intentional or just GitHub stuff?
they're the package maintainers, so I was just helping out OfBorg. I don't think we need to wait for them.
15:37:14
@shadowrz:nixos.dev夜坂雅* I'm not sure why you'd need not to use mkDerivation, I used to just add postBuild to fetchgit, maybe it can work but I won't do this now.15:37:29

Show newer messages


Back to Room ListRoom Version: 6