nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 43 lines 1.0 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, nix-update-script 5, makeWrapper 6, valgrind 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "cargo-valgrind"; 11 version = "2.0.3"; 12 13 src = fetchFromGitHub { 14 owner = "jfrimmel"; 15 repo = "cargo-valgrind"; 16 rev = version; 17 sha256 = "sha256-PEGDao010COqSJGha7GQvR7vNOV+C7faduijVNjB5DE="; 18 }; 19 20 cargoSha256 = "sha256-00WUYrkKKJOEN9jXKQ3YraTq89U+3djdvLRuZSbeNHk="; 21 22 passthru = { 23 updateScript = nix-update-script { 24 attrPath = pname; 25 }; 26 }; 27 28 nativeBuildInputs = [ makeWrapper ]; 29 30 postInstall = '' 31 wrapProgram $out/bin/cargo-valgrind --prefix PATH : ${lib.makeBinPath [ valgrind ]} 32 ''; 33 34 # Disable check phase as there are failures (2 tests fail) 35 doCheck = false; 36 37 meta = with lib; { 38 description = ''Cargo subcommand "valgrind": runs valgrind and collects its output in a helpful manner''; 39 homepage = "https://github.com/jfrimmel/cargo-valgrind"; 40 license = with licenses; [ asl20 /* or */ mit ]; 41 maintainers = with maintainers; [ otavio ]; 42 }; 43}