mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
deadpixi-sam-unstable: fix remote connection and add icon
This commit is contained in:
parent
750a5146f9
commit
3863692d00
1 changed files with 6 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue