Merge pull request #82982 from cole-h/rust-cleanup

improve robustness of various Rust packages

authored by Maximilian Bosch and committed by GitHub ee58c7a3 8e4e6fcf

+15 -17
+1 -1
pkgs/applications/blockchains/zcash/librustzcash/default.nix
··· 15 15 16 16 installPhase = '' 17 17 mkdir -p $out/lib 18 - cp target/release/librustzcash.a $out/lib/ 18 + cp $releaseDir/librustzcash.a $out/lib/ 19 19 mkdir -p $out/include 20 20 cp librustzcash/include/librustzcash.h $out/include/ 21 21 '';
+1 -1
pkgs/applications/misc/alacritty/default.nix
··· 95 95 installPhase = '' 96 96 runHook preInstall 97 97 98 - install -D target/release/alacritty $out/bin/alacritty 98 + install -D $releaseDir/alacritty $out/bin/alacritty 99 99 100 100 '' + ( 101 101 if stdenv.isDarwin then ''
+1 -1
pkgs/applications/networking/dyndns/cfdyndns/default.nix
··· 19 19 20 20 installPhase = '' 21 21 mkdir -p $out/bin 22 - cp -p target/release/cfdyndns $out/bin/ 22 + cp -p $releaseDir/cfdyndns $out/bin/ 23 23 ''; 24 24 25 25 meta = with stdenv.lib; {
+3 -4
pkgs/applications/version-management/git-and-tools/git-ignore/default.nix
··· 1 - { stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, darwin }: 1 + { stdenv, fetchFromGitHub, installShellFiles, rustPlatform, pkgconfig, openssl, darwin }: 2 2 3 3 with rustPlatform; 4 4 ··· 15 15 16 16 cargoSha256 = "0vcg2pl0s329fr8p23pwdx2jy7qahbr7n337ib61f69aaxi1xmq0"; 17 17 18 - nativeBuildInputs = [ pkgconfig ]; 18 + nativeBuildInputs = [ pkgconfig installShellFiles ]; 19 19 buildInputs = [ openssl ] 20 20 ++ stdenv.lib.optionals stdenv.isDarwin [ 21 21 darwin.apple_sdk.frameworks.Security ··· 23 23 24 24 outputs = [ "out" "man" ]; 25 25 preFixup = '' 26 - mkdir -p "$man/man/man1" 27 - cp target/release/build/git-ignore-*/out/git-ignore.1 "$man/man/man1/" 26 + installManPage $releaseDir/build/git-ignore-*/out/git-ignore.1 28 27 ''; 29 28 30 29 meta = with stdenv.lib; {
+1 -1
pkgs/development/tools/rust/racerd/default.nix
··· 32 32 33 33 installPhase = '' 34 34 mkdir -p $out/bin 35 - cp -p target/release/racerd $out/bin/ 35 + cp -p $releaseDir/racerd $out/bin/ 36 36 wrapProgram $out/bin/racerd --set-default RUST_SRC_PATH "$RUST_SRC_PATH" 37 37 ''; 38 38
+1 -1
pkgs/tools/misc/broot/default.nix
··· 23 23 24 24 postInstall = '' 25 25 # install shell completion files 26 - OUT_DIR=target/release/build/broot-*/out 26 + OUT_DIR=$releaseDir/build/broot-*/out 27 27 28 28 installShellCompletion --bash $OUT_DIR/{br,broot}.bash 29 29 installShellCompletion --fish $OUT_DIR/{br,broot}.fish
+2 -3
pkgs/tools/misc/fd/default.nix
··· 18 18 preFixup = '' 19 19 installManPage "$src/doc/fd.1" 20 20 21 - (cd target/release/build/fd-find-*/out 22 - installShellCompletion fd.{bash,fish} 23 - installShellCompletion --zsh _fd) 21 + installShellCompletion $releaseDir/build/fd-find-*/out/fd.{bash,fish} 22 + installShellCompletion --zsh $releaseDir/build/fd-find-*/out/_fd 24 23 ''; 25 24 26 25 meta = with lib; {
+1 -1
pkgs/tools/misc/lsd/default.nix
··· 19 19 20 20 nativeBuildInputs = [ installShellFiles ]; 21 21 postInstall = '' 22 - installShellCompletion target/release/build/lsd-*/out/{_lsd,lsd.{bash,fish}} 22 + installShellCompletion $releaseDir/build/lsd-*/out/{_lsd,lsd.{bash,fish}} 23 23 ''; 24 24 25 25 meta = with stdenv.lib; {
+1 -1
pkgs/tools/networking/tox-node/default.nix
··· 24 24 installPhase = '' 25 25 runHook preInstall 26 26 27 - install -D target/release/tox-node $out/bin/tox-node 27 + install -D $releaseDir/tox-node $out/bin/tox-node 28 28 29 29 runHook postInstall 30 30 '';
+3 -3
pkgs/tools/text/ripgrep/default.nix
··· 30 30 ++ (stdenv.lib.optional stdenv.isDarwin Security); 31 31 32 32 preFixup = '' 33 - (cd target/release/build/ripgrep-*/out 34 - installManPage rg.1 35 - installShellCompletion rg.{bash,fish}) 33 + installManPage $releaseDir/build/ripgrep-*/out/rg.1 34 + 35 + installShellCompletion $releaseDir/build/ripgrep-*/out/rg.{bash,fish} 36 36 installShellCompletion --zsh "$src/complete/_rg" 37 37 ''; 38 38