{ haskellPackages, haskell, fetchFromGitHub, fetchpatch, }: let inherit (haskell.lib.compose) appendPatches justStaticExecutables; drv = haskellPackages.callCabal2nix "hs-speedscope" (fetchFromGitHub { owner = "mpickering"; repo = "hs-speedscope"; rev = "c34ac00d35f5db52e14dc5b9ba5b228aa9953398"; hash = "sha256-sVTIPIUophj/sgNp1ox1eWHa19zhsZJGjvQt5hUfYk4="; }) { }; in appendPatches [ (fetchpatch { name = "fix-event-dropping-logic"; url = "https://github.com/mpickering/hs-speedscope/commit/1420a9615dc0cafc3051c87cad8a8c463550fcda.patch"; hash = "sha256-kOaMhXHAxSQRhvxhF0uDSD1Us+ywNJcqnrKDfNaU5hA="; }) (fetchpatch { name = "passing-rts-options"; url = "https://github.com/mpickering/hs-speedscope/commit/12ad16062325817242f0b7ebefabb40b9af4aa3e.patch"; hash = "sha256-AcL8t+D2xccKGVCCASXgP8t1K4EfHQmDpn2ZmR2Ppxk="; }) ] (justStaticExecutables drv)