about summary refs log tree commit diff
path: root/pkgs/tools/misc/immich-cli/default.nix
blob: 82d8e96ec798a2fec01787bc386ec4c2dea0f886 (plain) (blame)
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
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage {
  pname = "immich-cli";
  version = "2.0.6";

  src = fetchFromGitHub {
    owner = "immich-app";
    repo = "immich";
    # Using a fixed commit until upstream has release tags for cli.
    rev = "014adf175ad50a61f92804666940e267ab329064";
    hash = "sha256-MK3Watq5/Zp+rymCIfWxAXSgBPDE13g23uDnW7A5x9g=";
  };

  npmDepsHash = "sha256-ssxOXKE1t/bSb972w/cBeK61IrqPLmx9ODMn6D+2Ezw=";

  postPatch = ''
    cd cli
  '';

  meta = {
    description = "CLI utilities for Immich to help upload images and videos";
    homepage = "https://github.com/immich-app/immich";
    license = lib.licenses.mit;
    mainProgram = "immich";
    maintainers = with lib.maintainers; [ felschr pineapplehunter ];
  };
}