From 6f9f7ffaeff8682d125fd5ae2de55659ed1de435 Mon Sep 17 00:00:00 2001 From: Kai Norman Clasen Date: Sat, 13 Apr 2024 09:09:02 +0200 Subject: [PATCH 1/2] maintainers: add kai-tub --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4d9715f9784b..d897006b28d8 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10141,6 +10141,11 @@ githubId = 6544084; name = "Kai Harries"; }; + kai-tub = { + name = "Kai Norman Clasen"; + github = "kai-tub"; + githubId = 46302524; + }; kalbasit = { email = "wael.nasreddine@gmail.com"; matrix = "@kalbasit:matrix.org"; From fc0b0bde919459795d4ed7e864728176affc957c Mon Sep 17 00:00:00 2001 From: Kai Norman Clasen Date: Sat, 13 Apr 2024 09:45:07 +0200 Subject: [PATCH 2/2] immich-go: init at 0.13.2 Link to latest release: https://github.com/simulot/immich-go/releases/tag/0.13.2 --- pkgs/by-name/im/immich-go/package.nix | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/im/immich-go/package.nix diff --git a/pkgs/by-name/im/immich-go/package.nix b/pkgs/by-name/im/immich-go/package.nix new file mode 100644 index 000000000000..cfa5a04bf246 --- /dev/null +++ b/pkgs/by-name/im/immich-go/package.nix @@ -0,0 +1,47 @@ +{ lib, buildGoModule, fetchFromGitHub, nix-update-script, testers, immich-go }: +buildGoModule rec { + pname = "immich-go"; + version = "0.13.2"; + + src = fetchFromGitHub { + owner = "simulot"; + repo = "immich-go"; + rev = "${version}"; + hash = "sha256-zYqPPLDfBx4FLvZIo5E6nAeIiFfBCLI00xLieXFkMxs="; + }; + + vendorHash = "sha256-Y5BujN2mk662oKxQpenjFlxazST2GqWr9ug0sOsxKbY="; + + # options used by upstream: + # https://github.com/simulot/immich-go/blob/0.13.2/.goreleaser.yaml + ldflags = [ + "-s" + "-w" + "-extldflags=-static" + "-X main.version=${version}" + "-X main.commit=${version}" + "-X main.date=unknown" + ]; + + passthru = { + updateScript = nix-update-script { }; + tests.versionTest = testers.testVersion { + package = immich-go; + command = "immich-go -h"; + version = version; + }; + }; + + meta = { + description = "Immich client tool for bulk-uploads"; + longDescription = '' + Immich-Go is an open-source tool designed to streamline uploading + large photo collections to your self-hosted Immich server. + ''; + homepage = "https://github.com/simulot/immich-go"; + mainProgram = "immich-go"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ kai-tub ]; + changelog = "https://github.com/simulot/immich-go/releases/tag/${version}"; + }; +}