nixpkgs/pkgs/by-name/ko/kool/package.nix

42 lines
864 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
2023-08-09 13:55:15 +00:00
, testers
, kool
}:
buildGoModule rec {
pname = "kool";
2024-08-29 13:18:22 +00:00
version = "3.3.0";
src = fetchFromGitHub {
owner = "kool-dev";
repo = "kool";
rev = version;
2024-08-29 13:18:22 +00:00
hash = "sha256-AbE0MT55LQgDY/WZRs+kCfreLYtSyzmXkYIQmJC4Hbo=";
};
2024-08-29 13:18:22 +00:00
vendorHash = "sha256-wzTsd2ITwnPFc85bXoZLLb9wKvHYOgnb1FGiFXLkkiE=";
ldflags = [
"-s"
"-w"
"-X=kool-dev/kool/commands.version=${version}"
];
2023-08-09 13:55:15 +00:00
passthru.tests = {
version = testers.testVersion {
package = kool;
};
};
meta = with lib; {
description = "From local development to the cloud: development workflow made easy";
mainProgram = "kool";
homepage = "https://kool.dev";
changelog = "https://github.com/kool-dev/kool/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}