forked from mirrors/nixpkgs
deadpixi-sam-unstable: fix remote connection and add icon
This commit is contained in:
parent
750a5146f9
commit
3863692d00
|
@ -14,7 +14,8 @@ stdenv.mkDerivation rec {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace config.mk.def \
|
substituteInPlace config.mk.def \
|
||||||
--replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2" \
|
--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";
|
CFLAGS = "-D_DARWIN_C_SOURCE";
|
||||||
|
@ -24,8 +25,12 @@ stdenv.mkDerivation rec {
|
||||||
enableParallelBuilding = false;
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
postInstall = ''
|
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/applications
|
||||||
|
mkdir -p $out/share/icons/hicolor/scalable/apps
|
||||||
mv deadpixi-sam.desktop $out/share/applications
|
mv deadpixi-sam.desktop $out/share/applications
|
||||||
|
mv sam.svg $out/share/icons/hicolor/scalable/apps
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue