aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/mirage-profile/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/mirage-profile/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/mirage-profile/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/mirage-profile/default.nix b/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/mirage-profile/default.nix
new file mode 100644
index 000000000000..c6ca730bf3c5
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/mirage-profile/default.nix
@@ -0,0 +1,26 @@
+{ lib, fetchurl, buildDunePackage
+, ppx_cstruct
+, cstruct, lwt
+}:
+
+buildDunePackage rec {
+ pname = "mirage-profile";
+ version = "0.9.1";
+
+ useDune2 = true;
+
+ src = fetchurl {
+ url = "https://github.com/mirage/mirage-profile/releases/download/v${version}/mirage-profile-v${version}.tbz";
+ sha256 = "0lh3591ad4v7nxpd410b75idmgdq668mqdilvkg4avrwqw1wzdib";
+ };
+
+ buildInputs = [ ppx_cstruct ];
+ propagatedBuildInputs = [ cstruct lwt ];
+
+ meta = with lib; {
+ description = "Collect runtime profiling information in CTF format";
+ homepage = "https://github.com/mirage/mirage-profile";
+ license = licenses.bsd2;
+ maintainers = with maintainers; [ vbgl ];
+ };
+}