From 3dc5d9ac6cd7cd75904ebbf9ffd0a20149bcb4e3 Mon Sep 17 00:00:00 2001 From: reo101 Date: Fri, 19 Jul 2024 01:39:13 +0300 Subject: [PATCH] feat(pkgs): add `flamelens` --- pkgs/default.nix | 1 + pkgs/flamelens/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/flamelens/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 9f55409..bdb61e9 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,6 +10,7 @@ circom-lsp = pkgs.callPackage ./circom-lsp { }; envsub = pkgs.callPackage ./envsub { }; fennel-language-server = pkgs.callPackage ./fennel-language-server { }; + flamelens = pkgs.callPackage ./flamelens { }; parinfer-rust = pkgs.callPackage ./parinfer-rust { }; pest-ide-tools = pkgs.callPackage ./pest-ide-tools { }; # FIXME: only buildable on darwin diff --git a/pkgs/flamelens/default.nix b/pkgs/flamelens/default.nix new file mode 100644 index 0000000..8735a38 --- /dev/null +++ b/pkgs/flamelens/default.nix @@ -0,0 +1,30 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "flamelens"; + version = "v0.2.0"; + + src = fetchFromGitHub { + owner = "YS-L"; + repo = pname; + rev = version; + hash = "sha256-v8SBd5KkGok4hmAwSKmnKgxq3Ghipho7W7UYHW/2EMg="; + }; + + cargoSha256 = "sha256-0OG0q6GTF7nvVWAwvJZ0lEri0rz42zN4xvT0VGp3n/I="; + + nativeBuildInputs = [ + ]; + + buildInputs = [ + ]; + + doCheck = false; + + meta = with lib; { + description = "Flamegraph viewer in the terminal "; + homepage = "https://github.com/YS-L/flamelens"; + license = licenses.mit; + maintainers = with maintainers; [ reo101 ]; + }; +}