2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "trunk-io";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.2.4";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://trunk.io/releases/launcher/${version}/trunk";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-ylQ4tcPVO367PtLtBkw+MKxoIY7b14Gse3IxnIxMtqc=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|