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