From e29d4bd1b90e42dc73304766f5cb0a71522568b7 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 3 May 2023 12:11:28 -0400 Subject: feat: add misc expressions --- misc/tcmalloc-monster.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 misc/tcmalloc-monster.nix (limited to 'misc/tcmalloc-monster.nix') diff --git a/misc/tcmalloc-monster.nix b/misc/tcmalloc-monster.nix new file mode 100644 index 0000000..1d5f51c --- /dev/null +++ b/misc/tcmalloc-monster.nix @@ -0,0 +1,16 @@ +# this uses a cherry-picked version of nixpkgs with llvm 16 +# to build a 32-bit, statically linked version of tcmalloc +# +# i'm using it to test ways to solve crashes in tf2 on +# systems with mesa also compiled against llvm 16 +let + commit = "2c627d9c702202d75746fd45045d20008bf7ed86"; + nixpkgs = import (builtins.fetchTarball { + url = "https://github.com/RaitoBezarius/nixpkgs/archive/${commit}.tar.gz"; + sha256 = "sha256:002sz5nqsr7nvwp6bdapwmb691snhrcwdlp4flbhwgqgfzzpyksc"; + }) {system = "x86_64-linux";}; + + inherit (nixpkgs.llvmPackages_16) stdenv; + inherit (nixpkgs.pkgsi686Linux.pkgsStatic) gperftools; +in + gperftools.override {inherit stdenv;} -- cgit v1.2.3