mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge pull request #325659 from pinpox/init-ente-server
museum: init at photos-v0.9.5
This commit is contained in:
commit
03c07e5a7a
48
pkgs/by-name/mu/museum/package.nix
Normal file
48
pkgs/by-name/mu/museum/package.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, libsodium
|
||||
, buildGoModule
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
|
||||
version = "photos-v0.9.5";
|
||||
pname = "museum";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ente-io";
|
||||
repo = "ente";
|
||||
sparseCheckout = [ "server" ];
|
||||
rev = version;
|
||||
hash = "sha256-U+3k6uIJWDw7QxF1GRF+f6ZXdmCwSkOJ/F60rU1PXRM=";
|
||||
};
|
||||
|
||||
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-Vo3KhWWxO0k/d5qUFRfX44oTZBXtJeUlz6qaUvXLDag=";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user