2022-12-13 14:18:53 +03:00
|
|
|
{ system, stdenv, lib, fetchurl, installShellFiles }:
|
|
|
|
|
|
|
|
let
|
2023-03-16 11:13:24 +03:00
|
|
|
rev = "0.3.3";
|
|
|
|
fileName = "tala-v${version}-linux-amd64.tar.gz";
|
2022-12-13 14:18:53 +03:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "d2plugin-tala";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/terrastruct/TALA/releases/download/v${version}/${fileName}";
|
2023-04-03 17:26:00 +03:00
|
|
|
sha256 = "sha256-K+eX+2eSFTxfzUkmC/LDqTxyjZCvtlq5KwwuC3pPULo=";
|
2022-12-13 14:18:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
unpackPhase = "tar --strip-component=1 -xf $src";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2022-12-13 23:14:30 +03:00
|
|
|
install -Dm555 bin/d2plugin-tala $out/bin
|
2022-12-13 14:18:53 +03:00
|
|
|
installManPage man/d2plugin-tala.1
|
|
|
|
installManPage man/tala.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A diagram layout engine designed specifically for software architecture diagrams";
|
|
|
|
homepage = "https://terrastruct.com/tala";
|
|
|
|
license = licenses.unfree;
|
|
|
|
};
|
|
|
|
}
|