Loading pkgs/tools/misc/fclones/default.nix +11 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ fetchFromGitHub, stdenv, darwin, installShellFiles, }: rustPlatform.buildRustPackage rec { Loading @@ -23,6 +24,7 @@ rustPlatform.buildRustPackage rec { buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk_11_0.frameworks.AppKit ]; nativeBuildInputs = [ installShellFiles ]; # device::test_physical_device_name test fails on Darwin doCheck = !stdenv.hostPlatform.isDarwin; Loading @@ -32,6 +34,15 @@ rustPlatform.buildRustPackage rec { "--skip=cache::test::return_none_if_different_transform_was_used" ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' # setting PATH required so completion script doesn't use full path export PATH="$PATH:$out/bin" installShellCompletion --cmd $pname \ --bash <(fclones complete bash) \ --fish <(fclones complete fish) \ --zsh <(fclones complete zsh) ''; meta = with lib; { description = "Efficient Duplicate File Finder and Remover"; homepage = "https://github.com/pkolaczk/fclones"; Loading Loading
pkgs/tools/misc/fclones/default.nix +11 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ fetchFromGitHub, stdenv, darwin, installShellFiles, }: rustPlatform.buildRustPackage rec { Loading @@ -23,6 +24,7 @@ rustPlatform.buildRustPackage rec { buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk_11_0.frameworks.AppKit ]; nativeBuildInputs = [ installShellFiles ]; # device::test_physical_device_name test fails on Darwin doCheck = !stdenv.hostPlatform.isDarwin; Loading @@ -32,6 +34,15 @@ rustPlatform.buildRustPackage rec { "--skip=cache::test::return_none_if_different_transform_was_used" ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' # setting PATH required so completion script doesn't use full path export PATH="$PATH:$out/bin" installShellCompletion --cmd $pname \ --bash <(fclones complete bash) \ --fish <(fclones complete fish) \ --zsh <(fclones complete zsh) ''; meta = with lib; { description = "Efficient Duplicate File Finder and Remover"; homepage = "https://github.com/pkolaczk/fclones"; Loading