nixpkgs/pkgs/applications/networking/instant-messengers/franz/default.nix

50 lines
1.6 KiB
Nix
Raw Normal View History

2016-10-03 15:26:16 +02:00
{ stdenv, fetchurl
, xorg, gtk2, atk, glib, pango, gdk_pixbuf, cairo, freetype, fontconfig
, gnome2, dbus, nss, nspr, alsaLib, cups, expat, udev, libnotify }:
stdenv.mkDerivation rec {
2016-10-03 18:57:50 +02:00
bits = if stdenv.system == "x86_64-linux" then "x64"
else "ia32";
2016-10-03 15:26:16 +02:00
version = "4.0.4";
name = "franz-${version}";
src = fetchurl {
2016-10-03 18:57:50 +02:00
url = "https://github.com/meetfranz/franz-app/releases/download/4.0.4/Franz-linux-${bits}-${version}.tgz";
sha256 = if bits == "x64" then
"0ssym0jfrig474g6j67g1jfybjkxnyhbqqjvrs8z6ihwlyd3rrk5" else
"16l9jma2hiwzl9l41yhrwribcgmxca271rq0cfbbm9701mmmciyy";
2016-10-03 15:26:16 +02:00
};
phases = [ "unpackPhase" "installPhase" ];
deps = with xorg; [
gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes
libXrender libX11 libXtst libXScrnSaver gnome2.GConf nss nspr alsaLib
cups expat stdenv.cc.cc
udev libnotify
];
unpackPhase = ''
tar xzf $src
'';
installPhase = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" Franz
patchelf --set-rpath "$out/share/franz:${stdenv.lib.makeLibraryPath deps}" Franz
mkdir -p $out/bin $out/share/franz
cp -r * $out/share/franz
ln -s $out/share/franz/Franz $out/bin
'';
meta = with stdenv.lib; {
description = "A free messaging app that combines chat & messaging services into one application";
homepage = http://meetfranz.com;
license = licenses.free;
maintainers = [ stdenv.lib.maintainers.gnidorah ];
2016-10-03 18:57:50 +02:00
platforms = ["i686-linux" "x86_64-linux"];
hydraPlatforms = [];
2016-10-03 15:26:16 +02:00
};
}