chatterino7: init desktop entry & meta
This commit is contained in:
parent
77568d8c42
commit
cdd47d439a
1 changed files with 21 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
stdenv,
|
stdenv,
|
||||||
cmake,
|
cmake,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
|
makeDesktopItem,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "chatterino7";
|
pname = "chatterino7";
|
||||||
|
@ -25,10 +27,28 @@ stdenv.mkDerivation rec {
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
mv "bin/chatterino" "$out/bin"
|
cp "bin/chatterino" "$out/bin"
|
||||||
''
|
''
|
||||||
+ ''
|
+ ''
|
||||||
mkdir -p $out/share/icons/hicolor/256x256/apps
|
mkdir -p $out/share/icons/hicolor/256x256/apps
|
||||||
cp $src/resources/icon.png $out/share/icons/hicolor/256x256/apps/chatterino.png
|
cp $src/resources/icon.png $out/share/icons/hicolor/256x256/apps/chatterino.png
|
||||||
'';
|
'';
|
||||||
|
postFixup = ''
|
||||||
|
mkdir -p $out/share/applications
|
||||||
|
ln -s ${desktopFile}/share/applications/* $out/share/applications
|
||||||
|
'';
|
||||||
|
desktopFile = makeDesktopItem {
|
||||||
|
name = "Chatterino7";
|
||||||
|
desktopName = "Chatterino7";
|
||||||
|
exec = "chatterino";
|
||||||
|
icon = "chatterino";
|
||||||
|
comment = meta.description;
|
||||||
|
categories = ["Social Media"];
|
||||||
|
};
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Chat client for twitch.tv";
|
||||||
|
homepage = "https://github.com/SevenTV/chatterino7";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [notohh];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue