2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "trunk-io";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.2.3";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://trunk.io/releases/launcher/${version}/trunk";
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-arWege61fb7NiYSIL3ZaDQr75QEbDDJ7rVgdRUKqP4A=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D $src $out/bin/trunk
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://trunk.io/";
|
|
|
|
description = "Developer experience toolkit used to check, test, merge, and monitor code";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
|
|
};
|
|
|
|
}
|