Commit 940bea57 authored by Ben Gamari's avatar Ben Gamari 🐢

rr: Package zen_workaround.py

parent 9d4af750
......@@ -47,7 +47,7 @@ in
name = "ghc-utils";
preferLocalBuild = true;
paths = [
gdb.rr gdb.gdb gdb.run-ghc-gdb gdb.run-ghc-rr gdb.dot2svg
gdb.rr gdb.gdb gdb.run-ghc-gdb gdb.run-ghc-rr gdb.dot2svg gdb.zenWorkaround
misc-scripts
rel-eng
gitlab-utils
......
......@@ -67,7 +67,7 @@ with nixpkgs; rec {
buildInputs = oldAttrs.buildInputs ++ [ libipt ];
});
rr = nixpkgs.rr.overrideAttrs (oldAttrs: {
rr = nixpkgs.rr.overrideAttrs (oldAttrs: rec {
src = fetchFromGitHub {
owner = "mozilla";
repo = "rr";
......@@ -76,13 +76,20 @@ with nixpkgs; rec {
};
});
zenWorkaround = nixpkgs.runCommand "zen-workaround"
{ nativeBuildInputs = [ nixpkgs.python3 nixpkgs.makeWrapper ]; }
''
mkdir -p $out/bin
makeWrapper ${rr.src}/scripts/zen_workaround.py $out/bin/zen_workaround.py
'';
pythonEnv = python3.withPackages (_: [ ghc-gdb ]);
env = symlinkJoin {
name = "gdb-with-ghc-gdb";
paths = [
gdb pythonEnv gdbinit rr dot2svg
run-ghc-gdb run-ghc-rr
run-ghc-gdb run-ghc-rr zenWorkaround
];
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment