mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
f548f73410
https://github.com/photoprism/photoprism/releases/tag/230923-e59851350 https://github.com/photoprism/photoprism/releases/tag/231011-63f708417
39 lines
882 B
Nix
39 lines
882 B
Nix
{ lib, buildGoModule, coreutils, libtensorflow, src, version, ... }:
|
|
|
|
buildGoModule rec {
|
|
inherit src version;
|
|
pname = "photoprism-backend";
|
|
|
|
buildInputs = [
|
|
coreutils
|
|
libtensorflow
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace internal/commands/passwd.go --replace '/bin/stty' "${coreutils}/bin/stty"
|
|
'';
|
|
|
|
vendorHash = "sha256-SJjq2O7efqzzsg8I7n7pVqzG+jK0SsPT4J4iDdsMY4c=";
|
|
|
|
subPackages = [ "cmd/photoprism" ];
|
|
|
|
# https://github.com/mattn/go-sqlite3/issues/822
|
|
CGO_CFLAGS = "-Wno-return-local-addr";
|
|
|
|
# https://github.com/tensorflow/tensorflow/issues/43847
|
|
CGO_LDFLAGS = "-fuse-ld=gold";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://photoprism.app";
|
|
description = "Photoprism's backend";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ benesim ];
|
|
};
|
|
}
|