fcp: move to by-name; nixfmt

This commit is contained in:
wxt 2024-09-28 10:01:50 +08:00
parent 51648b2f0b
commit 15d355a6ee
No known key found for this signature in database
GPG Key ID: 8281D5EE2D1825A4
2 changed files with 13 additions and 9 deletions

View File

@ -1,4 +1,10 @@
{ expect, fetchFromGitHub, lib, rustPlatform, stdenv }:
{
expect,
fetchFromGitHub,
lib,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "fcp";
@ -6,8 +12,8 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "svetlitski";
repo = pname;
rev = "v${version}";
repo = "fcp";
rev = "refs/tags/v${version}";
sha256 = "0f242n8w88rikg1srimdifadhggrb2r1z0g65id60ahb4bjm8a0x";
};
@ -22,13 +28,13 @@ rustPlatform.buildRustPackage rec {
patchShebangs tests/*.exp
'';
meta = with lib; {
meta = {
description = "Significantly faster alternative to the classic Unix cp(1) command";
homepage = "https://github.com/svetlitski/fcp";
changelog = "https://github.com/svetlitski/fcp/releases/tag/v${version}";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ figsoda ];
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "fcp";
};
}

View File

@ -29636,8 +29636,6 @@ with pkgs;
fclones-gui = darwin.apple_sdk_11_0.callPackage ../tools/misc/fclones/gui.nix { };
fcp = callPackage ../tools/misc/fcp { };
fdupes = callPackage ../tools/misc/fdupes { };
feh = callPackage ../applications/graphics/feh {