summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/cp/cpx/package.nix
blob: 6273afc48026b743124c4ef6ca17db0a8237882b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  versionCheckHook,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "cpx";
  version = "0.1.4";

  src = fetchFromGitHub {
    owner = "11happy";
    repo = "cpx";
    tag = "v${finalAttrs.version}";
    hash = "sha256-1TjUlV0l4JnSSmmCprEy6wT1v7RPdsuhrnuKbkHiMkw=";
  };

  cargoHash = "sha256-zc2R9cm/dDJqDVp2osLXxY0O0MK6gLVG0bxt40bl9wY=";

  doInstallCheck = true;

  nativeInstallCheckInputs = [ versionCheckHook ];

  meta = {
    changelog = "https://github.com/11happy/cpx/releases/tag/v${finalAttrs.version}";
    description = "File copy tool for Linux with progress bars, resume capability";
    homepage = "https://github.com/11happy/cpx";
    license = lib.licenses.mit;
    mainProgram = "cpx";
    maintainers = with lib.maintainers; [ kyehn ];
    platforms = lib.platforms.linux;
  };
})