nixpkgs/pkgs/applications/networking/cluster/temporalite/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

37 lines
957 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "temporalite";
version = "0.3.0";
src = fetchFromGitHub {
owner = "temporalio";
repo = pname;
rev = "v${version}";
sha256 = "sha256-IEB9AFEt8U2zXYfbChfL/UH1rNSLPnfS396/cPE8UdE=";
};
vendorHash = "sha256-w86/XCMRGBmXM+oQ5+0qiX0fdwiKXvsmEkApuRLUOiA=";
subPackages = [ "cmd/temporalite" ];
postPatch = ''
substituteInPlace cmd/temporalite/ui_test.go \
--replace "TestNewUIConfigWithMissingConfigFile" "SkipNewUIConfigWithMissingConfigFile"
substituteInPlace cmd/temporalite/mtls_test.go \
--replace "TestMTLSConfig" "SkipMTLSConfig"
'';
meta = with lib; {
description = "An experimental distribution of Temporal that runs as a single process";
mainProgram = "temporalite";
homepage = "https://github.com/temporalio/temporalite";
license = licenses.mit;
maintainers = with maintainers; [ lucperkins ];
};
}