mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
323c6e34c4
Dependency updates, new available automatic tags and various smaller updates. Changelog: https://github.com/photoprism/photoprism/releases/tag/230615-90a18f6e7
39 lines
884 B
Nix
39 lines
884 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"
|
|
'';
|
|
|
|
vendorSha256 = "sha256-q3Jsc1wP7ahKSaOrcLiuatWRrXnpgPjqzdjr2dydSVs=";
|
|
|
|
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 ];
|
|
};
|
|
}
|