From aa6a14f350a5c8e8b0ea55d948dae465612d4116 Mon Sep 17 00:00:00 2001 From: Johannes Schleifenbaum Date: Mon, 16 May 2022 11:04:24 +0200 Subject: [PATCH] oh-my-git: fix ingame editor missing perl --- pkgs/games/oh-my-git/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/games/oh-my-git/default.nix b/pkgs/games/oh-my-git/default.nix index 57fbad34057b..0da53bbf9aa1 100644 --- a/pkgs/games/oh-my-git/default.nix +++ b/pkgs/games/oh-my-git/default.nix @@ -19,6 +19,7 @@ , libXrender , libglvnd , libpulseaudio +, perl , zlib , udev # for libudev }: @@ -54,6 +55,7 @@ stdenv.mkDerivation rec { libXrender libglvnd libpulseaudio + perl zlib udev ]; @@ -70,6 +72,13 @@ stdenv.mkDerivation rec { }) ]; + # patch shebangs so that e.g. the fake-editor script works: + # error: /usr/bin/env 'perl': No such file or directory + # error: There was a problem with the editor + postPatch = '' + patchShebangs scripts + ''; + buildPhase = '' runHook preBuild