From 77277dd0006503a15c90ee9fd06d5aa95c6ae3cd Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 3 Feb 2024 16:19:26 +0100 Subject: [PATCH] torcs: add desktop item --- pkgs/games/torcs/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/games/torcs/default.nix b/pkgs/games/torcs/default.nix index 4764db4413ed..9c712ae41a43 100644 --- a/pkgs/games/torcs/default.nix +++ b/pkgs/games/torcs/default.nix @@ -30,6 +30,11 @@ stdenv.mkDerivation rec { }) ]; + postInstall = '' + install -D -m644 Ticon.png $out/share/pixmaps/torcs.png + install -D -m644 torcs.desktop $out/share/applications/torcs.desktop + ''; + postPatch = '' sed -i -e s,/bin/bash,`type -P bash`, src/linux/torcs.in '';