1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "integresql";
9 version = "1.1.0";
10
11 src = fetchFromGitHub {
12 owner = "allaboutapps";
13 repo = "integresql";
14 rev = "v${version}";
15 hash = "sha256-heRa1H4ZSCZzSMCejhakBpJfnEnGQLmNFERKqMxbC04=";
16 };
17
18 vendorHash = "sha256-8qI7mLgQB0GK2QV6tZmWU8hJX+Ax1YhEPisQbjGoJRc=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X github.com/allaboutapps/integresql/internal/config.Commit=${src.rev}"
24 "-X github.com/allaboutapps/integresql/internal/config.ModuleName=github.com/allaboutapps/integresql"
25 ];
26
27 postInstall = ''
28 mv $out/bin/server $out/bin/integresql
29 '';
30
31 doCheck = false;
32
33 meta = with lib; {
34 description = "IntegreSQL manages isolated PostgreSQL databases for your integration tests";
35 homepage = "https://github.com/allaboutapps/integresql";
36 changelog = "https://github.com/allaboutapps/integresql/blob/${src.rev}/CHANGELOG.md";
37 license = licenses.mit;
38 maintainers = [ ];
39 mainProgram = "integresql";
40 };
41}