1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6rustPlatform.buildRustPackage {
7 pname = "layout";
8 version = "unstable-2025-05-22";
9
10 src = fetchFromGitHub {
11 owner = "nadavrot";
12 repo = "layout";
13 rev = "440e032a8ce21b61f5ada67e2b1450fb77842b7c";
14 hash = "sha256-1MR96QGFWVhIQiSSBQE5XXDT0stNIvh6d3hoy4akXTo=";
15 };
16
17 cargoLock = {
18 lockFile = ./Cargo.lock;
19 };
20
21 postPatch = ''
22 ln -s ${./Cargo.lock} Cargo.lock
23 '';
24
25 meta = {
26 description = "Layout is a rust library and a tool that renders Graphviz dot files";
27 homepage = "https://github.com/nadavrot/layout";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [noverby];
30 mainProgram = "layout";
31 };
32}