nixpkgs/pkgs/development/tools/trunk-io/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
664 B
Nix
Raw Normal View History

2022-10-07 10:37:37 +02:00
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "trunk-io";
2022-12-04 15:26:12 +01:00
version = "1.2.3";
2022-10-07 10:37:37 +02:00
src = fetchurl {
url = "https://trunk.io/releases/launcher/${version}/trunk";
2022-12-04 15:26:12 +01:00
hash = "sha256-arWege61fb7NiYSIL3ZaDQr75QEbDDJ7rVgdRUKqP4A=";
2022-10-07 10:37:37 +02: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 ];
};
}