From 3863692d0046753ad4707a41b2891d14201b983b Mon Sep 17 00:00:00 2001 From: Ram Kromberg Date: Fri, 6 May 2022 11:03:25 +0300 Subject: [PATCH] deadpixi-sam-unstable: fix remote connection and add icon --- pkgs/applications/editors/deadpixi-sam/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/deadpixi-sam/default.nix b/pkgs/applications/editors/deadpixi-sam/default.nix index 3f84666fe02..4321119156e 100644 --- a/pkgs/applications/editors/deadpixi-sam/default.nix +++ b/pkgs/applications/editors/deadpixi-sam/default.nix @@ -14,7 +14,8 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace config.mk.def \ --replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2" \ - --replace "CC=gcc" "CC=${stdenv.cc.targetPrefix}cc" + --replace "CC=gcc" "CC=${stdenv.cc.targetPrefix}cc" \ + --replace "RXPATH=/usr/bin/ssh" "RXPATH=ssh" ''; CFLAGS = "-D_DARWIN_C_SOURCE"; @@ -24,8 +25,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = false; postInstall = '' + substituteInPlace deadpixi-sam.desktop \ + --replace "accessories-text-editor" "$out/share/icons/hicolor/scalable/apps/sam.svg" mkdir -p $out/share/applications + mkdir -p $out/share/icons/hicolor/scalable/apps mv deadpixi-sam.desktop $out/share/applications + mv sam.svg $out/share/icons/hicolor/scalable/apps ''; meta = with lib; {