Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyper: 2.1.2 -> 3.1.0-canary.4 #91153

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 27 additions & 21 deletions pkgs/applications/misc/hyper/default.nix
@@ -1,40 +1,46 @@
{ stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk-pixbuf, gnome2, gtk2, cairo
{ stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk-pixbuf, gnome2, gtk3, cairo
, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr
, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver
, libxcb, nss, nspr, alsaLib, cups, expat, udev, libpulseaudio }:

let
libPath = stdenv.lib.makeLibraryPath [
stdenv.cc.cc gtk2 gnome2.GConf atk glib pango gdk-pixbuf cairo freetype fontconfig dbus
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
libXrender libX11 libXtst libXScrnSaver nss nspr alsaLib cups expat udev libpulseaudio
];
in
, libxcb, libuuid, nss, nspr, alsaLib, cups, expat, udev, libpulseaudio
, at-spi2-atk, at-spi2-core }:

stdenv.mkDerivation rec {
version = "2.1.2";
pname = "hyper";
version = "3.1.0-canary.4";

src = fetchurl {
url = "https://github.com/zeit/hyper/releases/download/${version}/hyper_${version}_amd64.deb";
sha256 = "1n4qlbk7q9zkhhg72mdks95g15xgyrc6ixf882ghvrqghd4zxplm";
url = "https://github.com/vercel/hyper/releases/download/v${version}/hyper_${version}_amd64.deb";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Note to self: Vercel (formerly ZEIT)

sha256 = "0z61sd3r9778d58xs6xjkz88c7crjk9vx9p1iw07i7pjj11wjrdb";
};
buildInputs = [ dpkg ];
unpackPhase = ''
mkdir pkg
dpkg-deb -x $src pkg
sourceRoot=pkg
'';

nativeBuildInputs = [ dpkg ];

unpackPhase = "dpkg-deb -x $src .";

installPhase = ''
mkdir -p "$out/bin"
mv opt "$out/"
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"
mv usr/* "$out/"
'';

preFixup = let
libPath = stdenv.lib.makeLibraryPath [
stdenv.cc.cc gtk3 gnome2.GConf atk glib pango gdk-pixbuf cairo freetype fontconfig dbus
libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
libXrender libX11 libXtst libXScrnSaver libuuid nss nspr alsaLib cups expat udev
libpulseaudio at-spi2-atk at-spi2-core
];
in ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:\$ORIGIN" "$out/opt/Hyper/hyper"
'';

dontPatchELF = true;

meta = with lib; {
description = "A terminal built on web technologies";
homepage = "https://hyper.is/";
maintainers = with maintainers; [ puffnfresh ];
maintainers = with maintainers; [ pradyuman puffnfresh ];
license = licenses.mit;
platforms = [ "x86_64-linux" ];
};
Expand Down