2021-03-02 08:51:19 +00:00
|
|
|
{ stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk-pixbuf, gnome2, gtk3, cairo
|
2016-08-30 11:10:42 +01:00
|
|
|
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr
|
|
|
|
, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver
|
2021-06-10 03:57:09 +01:00
|
|
|
, libxcb, nss, nspr, alsa-lib, cups, expat, udev, libpulseaudio, at-spi2-atk }:
|
2016-08-30 11:10:42 +01:00
|
|
|
|
|
|
|
let
|
2021-01-15 13:21:58 +00:00
|
|
|
libPath = lib.makeLibraryPath [
|
2021-03-02 08:51:19 +00:00
|
|
|
stdenv.cc.cc gtk3 gnome2.GConf atk glib pango gdk-pixbuf cairo freetype fontconfig dbus
|
2017-09-05 12:40:47 +01:00
|
|
|
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
|
2021-06-10 03:57:09 +01:00
|
|
|
libXrender libX11 libXtst libXScrnSaver nss nspr alsa-lib cups expat udev libpulseaudio
|
2021-03-02 08:51:19 +00:00
|
|
|
at-spi2-atk
|
2016-08-30 11:10:42 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2020-11-26 07:19:23 +00:00
|
|
|
version = "3.0.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hyper";
|
2016-08-30 11:10:42 +01:00
|
|
|
src = fetchurl {
|
2017-09-05 12:40:47 +01:00
|
|
|
url = "https://github.com/zeit/hyper/releases/download/${version}/hyper_${version}_amd64.deb";
|
2020-11-26 07:19:23 +00:00
|
|
|
sha256 = "0fv4wv5f8nc739bna83qxmgrvvbyq4w9ch764q2f12wjygrz336p";
|
2016-08-30 11:10:42 +01: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"
|
2021-03-02 08:51:19 +00:00
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:$out/opt/Hyper:\$ORIGIN" "$out/opt/Hyper/hyper"
|
2016-08-30 11:10:42 +01:00
|
|
|
mv usr/* "$out/"
|
|
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A terminal built on web technologies";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://hyper.is/";
|
2016-08-30 11:10:42 +01:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
|
|
license = licenses.mit;
|
2017-09-05 12:40:47 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2016-08-30 11:10:42 +01:00
|
|
|
};
|
|
|
|
}
|