2023-05-21 17:46:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-08-09 13:55:15 +00:00
|
|
|
, testers
|
|
|
|
, kool
|
2023-05-21 17:46:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kool";
|
2024-03-01 13:51:46 +00:00
|
|
|
version = "3.2.0";
|
2023-05-21 17:46:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kool-dev";
|
|
|
|
repo = "kool";
|
|
|
|
rev = version;
|
2024-03-01 13:51:46 +00:00
|
|
|
hash = "sha256-oMPzDU5MNIgxg7E2lgvgXEfO4W+VrFlLThOC9OEqhWo=";
|
2023-05-21 17:46:05 +00:00
|
|
|
};
|
|
|
|
|
2024-01-28 14:12:59 +00:00
|
|
|
vendorHash = "sha256-PmS96KVhe9TDmtYBx2hROLCbGMQ0OY3MN405dUmxPzk=";
|
2023-05-21 17:46:05 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-05-21 17:46:05 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "From local development to the cloud: development workflow made easy";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "kool";
|
2023-05-21 17:46:05 +00:00
|
|
|
homepage = "https://kool.dev";
|
|
|
|
changelog = "https://github.com/kool-dev/kool/releases/tag/${src.rev}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|