museum: modernize
- No with lib; in meta. - Put `vendorHash` near `src` - to make future diffs smaller, and to make sure no reviewer will miss a `vendorHash` not updated when a version bump does trigger a change in src's hash. - Nixfmt
This commit is contained in:
parent
87e1d4996d
commit
7943ba5526
@ -1,14 +1,14 @@
|
|||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, pkg-config
|
fetchFromGitHub,
|
||||||
, libsodium
|
pkg-config,
|
||||||
, buildGoModule
|
libsodium,
|
||||||
|
buildGoModule,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
|
|
||||||
version = "0.9.53";
|
|
||||||
pname = "museum";
|
pname = "museum";
|
||||||
|
version = "0.9.53";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ente-io";
|
owner = "ente-io";
|
||||||
@ -18,10 +18,16 @@ buildGoModule rec {
|
|||||||
hash = "sha256-aczWqK6Zymvl46fHN6QXT0f5V2lpC+8kpSbEoTiP+7k=";
|
hash = "sha256-aczWqK6Zymvl46fHN6QXT0f5V2lpC+8kpSbEoTiP+7k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-Vz9AodHoClSmo51ExdOS4bWH13i1Sug++LQMIsZY2xY=";
|
||||||
|
|
||||||
sourceRoot = "${src.name}/server";
|
sourceRoot = "${src.name}/server";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ libsodium ];
|
pkg-config
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
libsodium
|
||||||
|
];
|
||||||
|
|
||||||
# fatal: "Not running tests in non-test environment"
|
# fatal: "Not running tests in non-test environment"
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
@ -34,15 +40,15 @@ buildGoModule rec {
|
|||||||
$out/share/museum
|
$out/share/museum
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "API server for ente.io";
|
description = "API server for ente.io";
|
||||||
homepage = "https://github.com/ente-io/ente/tree/main/server";
|
homepage = "https://github.com/ente-io/ente/tree/main/server";
|
||||||
license = licenses.agpl3Only;
|
license = lib.licenses.agpl3Only;
|
||||||
maintainers = with maintainers; [ surfaceflinger pinpox ];
|
maintainers = with lib.maintainers; [
|
||||||
|
surfaceflinger
|
||||||
|
pinpox
|
||||||
|
];
|
||||||
mainProgram = "museum";
|
mainProgram = "museum";
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
vendorHash = "sha256-Vz9AodHoClSmo51ExdOS4bWH13i1Sug++LQMIsZY2xY=";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user