mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libsodium
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
version = "photos-v0.9.35";
|
|
pname = "museum";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ente-io";
|
|
repo = "ente";
|
|
sparseCheckout = [ "server" ];
|
|
rev = version;
|
|
hash = "sha256-A/M2OhDzzOMGXnaqFFV9Z8bn/3HeZc50p2mIv++Q0uE=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/server";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libsodium ];
|
|
|
|
# fatal: "Not running tests in non-test environment"
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/museum
|
|
cp -R configurations \
|
|
migrations \
|
|
mail-templates \
|
|
$out/share/museum
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "API server for ente.io";
|
|
homepage = "https://github.com/ente-io/ente/tree/main/server";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ surfaceflinger pinpox ];
|
|
mainProgram = "museum";
|
|
platforms = platforms.linux;
|
|
};
|
|
vendorHash = "sha256-Vz9AodHoClSmo51ExdOS4bWH13i1Sug++LQMIsZY2xY=";
|
|
}
|
|
|
|
|