Loading pkgs/by-name/nh/nh/package.nix +13 −7 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ nix-update-script, nvd, nix-output-monitor, buildPackages, }: let runtimeDeps = [ Loading Loading @@ -38,14 +39,19 @@ rustPlatform.buildRustPackage (finalAttrs: { darwin.apple_sdk.frameworks.SystemConfiguration ]; preFixup = '' preFixup = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( let emulator = stdenv.hostPlatform.emulator buildPackages; in '' mkdir completions $out/bin/nh completions --shell bash > completions/nh.bash $out/bin/nh completions --shell zsh > completions/nh.zsh $out/bin/nh completions --shell fish > completions/nh.fish ${emulator} $out/bin/nh completions --shell bash > completions/nh.bash ${emulator} $out/bin/nh completions --shell zsh > completions/nh.zsh ${emulator} $out/bin/nh completions --shell fish > completions/nh.fish installShellCompletion completions/* ''; '' ); postFixup = '' wrapProgram $out/bin/nh \ Loading Loading
pkgs/by-name/nh/nh/package.nix +13 −7 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ nix-update-script, nvd, nix-output-monitor, buildPackages, }: let runtimeDeps = [ Loading Loading @@ -38,14 +39,19 @@ rustPlatform.buildRustPackage (finalAttrs: { darwin.apple_sdk.frameworks.SystemConfiguration ]; preFixup = '' preFixup = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( let emulator = stdenv.hostPlatform.emulator buildPackages; in '' mkdir completions $out/bin/nh completions --shell bash > completions/nh.bash $out/bin/nh completions --shell zsh > completions/nh.zsh $out/bin/nh completions --shell fish > completions/nh.fish ${emulator} $out/bin/nh completions --shell bash > completions/nh.bash ${emulator} $out/bin/nh completions --shell zsh > completions/nh.zsh ${emulator} $out/bin/nh completions --shell fish > completions/nh.fish installShellCompletion completions/* ''; '' ); postFixup = '' wrapProgram $out/bin/nh \ Loading