2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-10-30 15:09:59 +00:00
|
|
|
pname = "trunk-io";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.2.7";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://trunk.io/releases/launcher/${finalAttrs.version}/trunk";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-i2m+6Y6gvkHYwzESJv0DkLcHkXqz+g4e43TV6u1UTj8=";
|
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 ];
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|