xcursor-pro: init at 2.0.2 (#335188)
[NixPkgs.git] / pkgs / by-name / in / integresql / package.nix
blobda724b573cdd473491414fdc050c2e82894e2b3b
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "integresql";
9   version = "1.1.0";
11   src = fetchFromGitHub {
12     owner = "allaboutapps";
13     repo = "integresql";
14     rev = "v${version}";
15     hash = "sha256-heRa1H4ZSCZzSMCejhakBpJfnEnGQLmNFERKqMxbC04=";
16   };
18   vendorHash = "sha256-8qI7mLgQB0GK2QV6tZmWU8hJX+Ax1YhEPisQbjGoJRc=";
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   ];
27   postInstall = ''
28     mv $out/bin/server $out/bin/integresql
29   '';
31   doCheck = false;
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   };