depot/third_party/nixpkgs/pkgs/by-name/tr/trunk-io/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

29 lines
738 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation (finalAttrs: {
pname = "trunk-io";
version = "1.3.2";
src = fetchurl {
url = "https://trunk.io/releases/launcher/${finalAttrs.version}/trunk";
hash = "sha256-zrfnPWHFoFQkVtxPedKrL1Y1xLZSDX3JuF0qgo/hhnE=";
};
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;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ aaronjheng ];
};
})