From f30d04715a9589fcb9794c07a8d9db98b30cce3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Sat, 16 Nov 2024 08:49:18 +0100 Subject: [PATCH] actiongraph added --- flake.nix | 2 ++ nix/actiongraph.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 nix/actiongraph.nix diff --git a/flake.nix b/flake.nix index 6ffdedc..86359c9 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,8 @@ packages = [ pkgs.sqlc (pkgs.callPackage ./nix/sql-migrate.nix {}) + (pkgs.callPackage ./nix/actiongraph.nix {}) + pkgs.sqlite ]; }; }; diff --git a/nix/actiongraph.nix b/nix/actiongraph.nix new file mode 100644 index 0000000..51dc8c7 --- /dev/null +++ b/nix/actiongraph.nix @@ -0,0 +1,32 @@ +{ stdenv +, lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "actiongraph"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "icio"; + repo = "actiongraph"; + rev = "3cf5d9b3415761ba1efef5d97b2289f4190e0b8c"; + hash = "sha256-EaX8xLDViUsXrkbQ+wM4OdkgL6iVRhZSH4ZT44Cnwj8="; + }; + + vendorHash = "sha256-C1LdcC/SrtpsDdHN+JlKxeOP33FkA3AVixYX063OFTI="; + + ldflags = [ + "-s" + "-w" + ]; + + doCheck = true; + + meta = with lib; { + homepage = "https://github.com/icio/actiongraph"; + description = "Go build actiongraph debug visualiser"; + license = licenses.mit; + }; +} \ No newline at end of file