diff options
author | Robin Gloster <mail@glob.in> | 2022-12-14 21:44:22 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2022-12-14 22:09:10 +0100 |
commit | 6de54be915b5d5bd73144f7ff897667dfe3dd4ea (patch) | |
tree | 4164fadc52aea44f01c754e7dfc85aa5ac34f53c /pkgs/os-specific/linux/below | |
parent | f866b52683e8fb3ed438027e636ae746a1b3cbc4 (diff) |
below: init at 0.6.3
Diffstat (limited to 'pkgs/os-specific/linux/below')
-rw-r--r-- | pkgs/os-specific/linux/below/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/below/default.nix b/pkgs/os-specific/linux/below/default.nix new file mode 100644 index 0000000000000..9cd9267808d76 --- /dev/null +++ b/pkgs/os-specific/linux/below/default.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, clang +, pkgconfig +, elfutils +, rustfmt +, zlib +}: + +rustPlatform.buildRustPackage rec { + pname = "below"; + version = "0.6.3"; + + src = fetchFromGitHub { + owner = "facebookincubator"; + repo = "below"; + rev = "v${version}"; + sha256 = "sha256-d5a/M2XEw2E2iydopzedqZ/XfQU7KQyTC5NrPTeeNLg="; + }; + + cargoSha256 = "sha256-EoRCmEe9SAySZCm+QhaR4ngik4Arnm4SZjgDM5fSRmk="; + + # bpf code compilation + hardeningDisable = [ "stackprotector" ]; + + nativeBuildInputs = [ clang pkgconfig rustfmt ]; + buildInputs = [ elfutils zlib ]; + + # needs /sys/fs/cgroup + doCheck = false; + + meta = with lib; { + platforms = platforms.linux; + maintainers = with maintainers; [ globin ]; + description = "A time traveling resource monitor for modern Linux systems"; + license = licenses.asl20; + homepage = "https://github.com/facebookincubator/below"; + }; +} |