2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, lib, fetchurl, dpkg, gtk2, atk, glib, pango, gdk_pixbuf, cairo
|
2016-08-30 12:10:42 +02:00
|
|
|
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr
|
|
|
|
, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver
|
|
|
|
, GConf, nss, nspr, alsaLib, cups, expat, libudev, libpulseaudio }:
|
|
|
|
|
|
|
|
let
|
|
|
|
libPath = stdenv.lib.makeLibraryPath [
|
2016-09-11 23:24:51 +02:00
|
|
|
stdenv.cc.cc gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus
|
2016-08-30 12:10:42 +02:00
|
|
|
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes
|
|
|
|
libXrender libX11 libXtst libXScrnSaver GConf nss nspr alsaLib cups expat libudev libpulseaudio
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-22 20:37:17 +02:00
|
|
|
version = "0.8.3";
|
|
|
|
name = "hyper-${version}";
|
2016-08-30 12:10:42 +02:00
|
|
|
src = fetchurl {
|
2016-10-22 20:37:17 +02:00
|
|
|
url = "https://github.com/zeit/hyper/releases/download/${version}/hyper-${version}-amd64.deb";
|
|
|
|
sha256 = "1683gc0fhifn89l9h67yz02pk1xz7p5l3qpiyddr9w21qr9h3lhq";
|
2016-08-30 12:10:42 +02:00
|
|
|
};
|
|
|
|
buildInputs = [ dpkg ];
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir pkg
|
|
|
|
dpkg-deb -x $src pkg
|
|
|
|
sourceRoot=pkg
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mv opt "$out/"
|
2016-10-22 20:37:17 +02:00
|
|
|
ln -s "$out/opt/Hyper/Hyper" "$out/bin/Hyper"
|
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:\$ORIGIN" "$out/opt/Hyper/Hyper"
|
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.cc.cc ]}" "$out/opt/Hyper/resources/app/node_modules/child_pty/build/Release/exechelper"
|
2016-08-30 12:10:42 +02:00
|
|
|
mv usr/* "$out/"
|
|
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A terminal built on web technologies";
|
2016-10-22 20:37:17 +02:00
|
|
|
homepage = https://hyper.is/;
|
2016-08-30 12:10:42 +02:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|