2019-05-22 13:03:39 +02:00
|
|
|
{ stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk-pixbuf, gnome2, gtk2, cairo
|
2016-08-30 12:10:42 +02:00
|
|
|
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr
|
|
|
|
, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver
|
2018-07-17 22:11:16 +02:00
|
|
|
, libxcb, nss, nspr, alsaLib, cups, expat, udev, libpulseaudio }:
|
2016-08-30 12:10:42 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
libPath = stdenv.lib.makeLibraryPath [
|
2019-05-22 13:03:39 +02:00
|
|
|
stdenv.cc.cc gtk2 gnome2.GConf atk glib pango gdk-pixbuf cairo freetype fontconfig dbus
|
2017-09-05 13:40:47 +02:00
|
|
|
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
|
2018-07-17 22:11:16 +02:00
|
|
|
libXrender libX11 libXtst libXScrnSaver nss nspr alsaLib cups expat udev libpulseaudio
|
2016-08-30 12:10:42 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-02 15:19:29 +01:00
|
|
|
version = "2.1.2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "hyper";
|
2016-08-30 12:10:42 +02:00
|
|
|
src = fetchurl {
|
2017-09-05 13:40:47 +02:00
|
|
|
url = "https://github.com/zeit/hyper/releases/download/${version}/hyper_${version}_amd64.deb";
|
2019-03-02 15:19:29 +01:00
|
|
|
sha256 = "1n4qlbk7q9zkhhg72mdks95g15xgyrc6ixf882ghvrqghd4zxplm";
|
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/"
|
2017-03-17 01:36:12 +01: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 12:10:42 +02:00
|
|
|
mv usr/* "$out/"
|
|
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A terminal built on web technologies";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://hyper.is/";
|
2016-08-30 12:10:42 +02:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
|
|
license = licenses.mit;
|
2017-09-05 13:40:47 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2016-08-30 12:10:42 +02:00
|
|
|
};
|
|
|
|
}
|