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 08:37:37 +00:00
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "trunk-io";
2023-08-10 01:26:30 +00:00
version = "1.2.7";
2022-10-07 08:37:37 +00:00
src = fetchurl {
url = "https://trunk.io/releases/launcher/${version}/trunk";
2023-08-10 01:26:30 +00:00
hash = "sha256-i2m+6Y6gvkHYwzESJv0DkLcHkXqz+g4e43TV6u1UTj8=";
2022-10-07 08:37:37 +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 ];
};
}