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
Fix/stlink update #22581
Fix/stlink update #22581
Conversation
I forgot to turn off verbose, and the udev rules aren't there. I need to fix those. |
OK, I have to ask here... I don't have a clue about how I can make udev rules work. They are already in the |
if you haven't done so already, add https://github.com/NixOS/nixpkgs-channels as remote.
Checkout
Cherry-pick this commit you made.
Save it as a new branch named
And force push to this PR
cc maintainer @bjornfor |
I will test that. But I still want to know how to get those udev rules to work. They are not loaded by any means, despite being in |
I can't help you with that. |
@rongcuid: If the udev rules are properly installed by the package ( |
Ah, I see. I will push the new changes once I get back. |
Um, tried to force push, experimented with stuff and accidentally deleted the branch...
This doesn't seem to work. Is the syntax correct? |
OK, it's the slash that causes problem. Trying to fix it |
b05521a
to
d8624d1
Compare
Ahh, after some Note that I don't have time to test udev rules yet, but I am still interested in finding a way to inform the user to add the |
preConfigure = "./autogen.sh"; | ||
buildInputs = [ cmake libusb1 ]; | ||
patchPhase = '' | ||
sed -i 's@/etc/udev/rules.d@$ENV{out}/etc/udev/rules.d@' CMakeLists.txt |
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.
please indent correctly
sed -i 's@/etc/modprobe.d@$ENV{out}/etc/modprobe.d@' CMakeLists.txt | ||
''; | ||
preInstall = '' | ||
mkdir -p $out/etc/udev/rules.d |
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.
here as well
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.
Um, is it possible to do the change directly here without touching my local repo?
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.
you could go to your fork and branch on GitHUb and use the edit button
@bjornfor are these changes okay with out? Now the commits just need to be squashes, but we can do that. |
@rongcuid: What is fixed in the first commit? If this is more than a version bump I'd like it documented in the commit message. (You can write that here and I can add it to the commit when squashing.) |
Well, first that is what I was told by the Nixpkgs manual to do... Using I also took care of the switch from autotools to cmake. |
@rongcuid: Hm, I never heard of that convention. Seems odd. Do you have a link? I removed the "fix/" prefix, squashed and pushed to master (9775a26). Thanks! Btw, I noticed a couple of things (for possible future work):
|
@rongcuid there's an example where the branch starts with |
Ah, ok. |
Motivation for this change
To update STLink utility.
Note that I really don't know how to keep my branch up to date with master, since I based it on my current system version. Nowhere in docs did I find any information about how I merge changes from master back. I tried
-s ours
,-Xtheirs
,-Xours
,rebase --onto
, and none of them work.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)