discord: change from 4 to 2 space indentation
This commit is contained in:
parent
6b311bef63
commit
0687a9d8db
@ -5,61 +5,60 @@
|
|||||||
, pango, systemd, libXScrnSaver, libcxx, libpulseaudio }:
|
, pango, systemd, libXScrnSaver, libcxx, libpulseaudio }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "discord";
|
||||||
|
version = "0.0.9";
|
||||||
|
|
||||||
pname = "discord";
|
src = fetchurl {
|
||||||
version = "0.0.9";
|
url = "https://cdn.discordapp.com/apps/linux/${version}/${pname}-${version}.tar.gz";
|
||||||
|
sha256 = "1i0f8id10rh2fx381hx151qckvvh8hbznfsfav8w0dfbd1bransf";
|
||||||
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
nativeBuildInputs = [ wrapGAppsHook ];
|
||||||
url = "https://cdn.discordapp.com/apps/linux/${version}/${pname}-${version}.tar.gz";
|
|
||||||
sha256 = "1i0f8id10rh2fx381hx151qckvvh8hbznfsfav8w0dfbd1bransf";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ wrapGAppsHook ];
|
dontWrapGApps = true;
|
||||||
|
|
||||||
dontWrapGApps = true;
|
libPath = stdenv.lib.makeLibraryPath [
|
||||||
|
libcxx systemd libpulseaudio
|
||||||
|
stdenv.cc.cc alsaLib atk at-spi2-atk cairo cups dbus expat fontconfig freetype
|
||||||
|
gdk_pixbuf glib gtk3 libnotify libX11 libXcomposite libuuid
|
||||||
|
libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender
|
||||||
|
libXtst nspr nss libxcb pango systemd libXScrnSaver
|
||||||
|
];
|
||||||
|
|
||||||
libPath = stdenv.lib.makeLibraryPath [
|
installPhase = ''
|
||||||
libcxx systemd libpulseaudio
|
mkdir -p $out/{bin,opt/discord,share/pixmaps}
|
||||||
stdenv.cc.cc alsaLib atk at-spi2-atk cairo cups dbus expat fontconfig freetype
|
mv * $out/opt/discord
|
||||||
gdk_pixbuf glib gtk3 libnotify libX11 libXcomposite libuuid
|
|
||||||
libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender
|
|
||||||
libXtst nspr nss libxcb pango systemd libXScrnSaver
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
chmod +x $out/opt/discord/Discord
|
||||||
mkdir -p $out/{bin,opt/discord,share/pixmaps}
|
patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
|
||||||
mv * $out/opt/discord
|
$out/opt/discord/Discord
|
||||||
|
|
||||||
chmod +x $out/opt/discord/Discord
|
wrapProgram $out/opt/discord/Discord \
|
||||||
patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
|
"''${gappsWrapperArgs[@]}" \
|
||||||
$out/opt/discord/Discord
|
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
|
||||||
|
--prefix LD_LIBRARY_PATH : ${libPath}
|
||||||
|
|
||||||
wrapProgram $out/opt/discord/Discord \
|
ln -s $out/opt/discord/Discord $out/bin/
|
||||||
"''${gappsWrapperArgs[@]}" \
|
ln -s $out/opt/discord/discord.png $out/share/pixmaps
|
||||||
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
|
|
||||||
--prefix LD_LIBRARY_PATH : ${libPath}
|
|
||||||
|
|
||||||
ln -s $out/opt/discord/Discord $out/bin/
|
ln -s "${desktopItem}/share/applications" $out/share/
|
||||||
ln -s $out/opt/discord/discord.png $out/share/pixmaps
|
'';
|
||||||
|
|
||||||
ln -s "${desktopItem}/share/applications" $out/share/
|
desktopItem = makeDesktopItem {
|
||||||
'';
|
name = pname;
|
||||||
|
exec = "Discord";
|
||||||
|
icon = pname;
|
||||||
|
desktopName = "Discord";
|
||||||
|
genericName = meta.description;
|
||||||
|
categories = "Network;InstantMessaging;";
|
||||||
|
};
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
meta = with stdenv.lib; {
|
||||||
name = pname;
|
description = "All-in-one cross-platform voice and text chat for gamers";
|
||||||
exec = "Discord";
|
homepage = https://discordapp.com/;
|
||||||
icon = pname;
|
downloadPage = "https://github.com/crmarsh/discord-linux-bugs";
|
||||||
desktopName = "Discord";
|
license = licenses.unfree;
|
||||||
genericName = meta.description;
|
maintainers = [ maintainers.ldesgoui maintainers.MP2E ];
|
||||||
categories = "Network;InstantMessaging;";
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "All-in-one cross-platform voice and text chat for gamers";
|
|
||||||
homepage = https://discordapp.com/;
|
|
||||||
downloadPage = "https://github.com/crmarsh/discord-linux-bugs";
|
|
||||||
license = licenses.unfree;
|
|
||||||
maintainers = [ maintainers.ldesgoui maintainers.MP2E ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user