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
cargo-valgrind: init at 1.3.0 #108388
cargo-valgrind: init at 1.3.0 #108388
Conversation
647ad79
to
3566c71
Compare
Result of 1 package built:
|
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 1 package built:
|
a992d18
to
6ad4026
Compare
@SuperSandro2000 I forced-push squashing your proposed change. Please take a look at it. |
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 1 package built:
|
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 should probably create a wrapper here to make sure that valgrind
can be found even if it's not installed globally or in a local profile.
Oh, good. I'll research how to do it. |
Oh, good. I'll research how to do it.
I'll look very dumb but I did not find out how to do this. Do you have an example or documentation I could take look at? |
you basically want to use makeWrapper for that. The bash-code in a post-install hook may look like this then: /* ... */ {
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/cargo-valgrind --prefix PATH : ${stdenv.lib.makeBinPath [ valgrind ]}
'';
} |
It kinda work. The
|
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5d06d17
to
31ac63f
Compare
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.
Motivation for this change
Introduce a new useful tool for Rust users
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)