2016-09-11 21:24:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, dpkg, gtk2, atk, glib, pango, gdk_pixbuf, cairo
|
2016-08-30 10:10:42 +00:00
|
|
|
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr
|
|
|
|
, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver
|
2017-09-05 11:40:47 +00:00
|
|
|
, libxcb
|
2016-08-30 10:10:42 +00:00
|
|
|
, GConf, nss, nspr, alsaLib, cups, expat, libudev, libpulseaudio }:
|
|
|
|
|
|
|
|
let
|
|
|
|
libPath = stdenv.lib.makeLibraryPath [
|
2016-09-11 21:24:51 +00:00
|
|
|
stdenv.cc.cc gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus
|
2017-09-05 11:40:47 +00:00
|
|
|
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
|
2016-08-30 10:10:42 +00:00
|
|
|
libXrender libX11 libXtst libXScrnSaver GConf nss nspr alsaLib cups expat libudev libpulseaudio
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-17 14:43:48 +00:00
|
|
|
version = "1.4.8";
|
2016-10-22 18:37:17 +00:00
|
|
|
name = "hyper-${version}";
|
2016-08-30 10:10:42 +00:00
|
|
|
src = fetchurl {
|
2017-09-05 11:40:47 +00:00
|
|
|
url = "https://github.com/zeit/hyper/releases/download/${version}/hyper_${version}_amd64.deb";
|
2017-10-17 14:43:48 +00:00
|
|
|
sha256 = "0v31z3p5h3qr8likifbq9kk08fpfyf8g1hrz6f6v90z4b2yhkf51";
|
2016-08-30 10:10:42 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ dpkg ];
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir pkg
|
|
|
|
dpkg-deb -x $src pkg
|
|
|
|
sourceRoot=pkg
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mv opt "$out/"
|
2017-03-17 00:36:12 +00: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"
|
2016-08-30 10:10:42 +00:00
|
|
|
mv usr/* "$out/"
|
|
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A terminal built on web technologies";
|
2016-10-22 18:37:17 +00:00
|
|
|
homepage = https://hyper.is/;
|
2016-08-30 10:10:42 +00:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
|
|
license = licenses.mit;
|
2017-09-05 11:40:47 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2016-08-30 10:10:42 +00:00
|
|
|
};
|
|
|
|
}
|