summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/perf
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-11-02 12:55:11 +0000
committerAaron Jheng <wentworth@outlook.com>2022-11-03 22:31:38 +0000
commitd7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28 (patch)
treea2be7ced881d139fb8cbb661cfa9360aceb6b07d /pkgs/os-specific/linux/kernel/perf
parent608eb68fd8ab9e50186ffc3d7c7e842618037c2b (diff)
downloadnixpkgs-d7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28.tar
nixpkgs-d7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28.tar.gz
nixpkgs-d7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28.tar.bz2
nixpkgs-d7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28.tar.lz
nixpkgs-d7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28.tar.xz
nixpkgs-d7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28.tar.zst
nixpkgs-d7618af3d8e0d33cfdf7303dfe1d6b32a3d69a28.zip
perf: remove trace binary
Diffstat (limited to 'pkgs/os-specific/linux/kernel/perf')
-rw-r--r--pkgs/os-specific/linux/kernel/perf/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/perf/default.nix b/pkgs/os-specific/linux/kernel/perf/default.nix
index 3693c9868df..969d1e2bb65 100644
--- a/pkgs/os-specific/linux/kernel/perf/default.nix
+++ b/pkgs/os-specific/linux/kernel/perf/default.nix
@@ -73,6 +73,11 @@ stdenv.mkDerivation {
   separateDebugInfo = true;
   installFlags = [ "install" "install-man" "ASCIIDOC8=1" "prefix=$(out)" ];
 
+  postInstall =''
+    # Same as perf. Remove.
+    rm -f $out/bin/trace
+  '';
+
   preFixup = ''
     # Pull in 'objdump' into PATH to make annotations work.
     # The embeded Python interpreter will search PATH to calculate the Python path configuration(Should be fixed by upstream).