nixpkgs/pkgs/by-name/mu/museum/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
pkg-config,
libsodium,
buildGoModule,
nix-update-script,
2024-07-09 00:16:00 +02:00
}:
buildGoModule rec {
pname = "museum";
2025-04-08 06:36:27 +00:00
version = "1.0.2";
2024-07-09 00:16:00 +02:00
src = fetchFromGitHub {
owner = "ente-io";
repo = "ente";
sparseCheckout = [ "server" ];
2024-11-07 12:48:40 +01:00
rev = "photos-v${version}";
2025-04-08 06:36:27 +00:00
hash = "sha256-d66dCTs68sIL6iCV4vDvErER3LAz/SdkqOj0aJBro8k=";
2024-07-09 00:16:00 +02:00
};
2025-03-17 06:23:21 +00:00
vendorHash = "sha256-px4pMqeH73Fe06va4+n6hklIUDMbPmAQNKKRIhwv6ec=";
2024-07-09 00:16:00 +02:00
sourceRoot = "${src.name}/server";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libsodium
];
2024-07-09 00:16:00 +02:00
# 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
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"photos-v(.*)"
];
};
meta = {
2024-07-09 00:16:00 +02:00
description = "API server for ente.io";
homepage = "https://github.com/ente-io/ente/tree/main/server";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [
pinpox
];
2024-07-09 00:16:00 +02:00
mainProgram = "museum";
platforms = lib.platforms.linux;
2024-07-09 00:16:00 +02:00
};
}