depot/third_party/nixpkgs/pkgs/development/tools/trunk-io/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

28 lines
685 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation (finalAttrs: {
pname = "trunk-io";
version = "1.2.7";
src = fetchurl {
url = "https://trunk.io/releases/launcher/${finalAttrs.version}/trunk";
hash = "sha256-i2m+6Y6gvkHYwzESJv0DkLcHkXqz+g4e43TV6u1UTj8=";
};
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 ];
};
})