1 { stdenv, lib, fetchurl, dpkg, atk, glib, pango, gdk-pixbuf, gtk3, cairo
2 , freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr, libXcomposite
3 , libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver, libxcb, nss, nspr
4 , alsa-lib, cups, expat, udev, libpulseaudio, at-spi2-atk, at-spi2-core, libxshmfence
5 , libdrm, libxkbcommon, mesa, nixosTests}:
8 libPath = lib.makeLibraryPath [
9 stdenv.cc.cc gtk3 atk glib pango gdk-pixbuf cairo freetype fontconfig dbus
10 libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb
11 libXrender libX11 libXtst libXScrnSaver nss nspr alsa-lib cups expat udev libpulseaudio
12 at-spi2-atk at-spi2-core libxshmfence libdrm libxkbcommon mesa
16 stdenv.mkDerivation rec {
21 url = "https://github.com/vercel/hyper/releases/download/v${version}/hyper_${version}_amd64.deb";
22 sha256 = "sha256-jEzZ6MWFaNXBS8CAzfn/ufMPpWcua9HhBFzetWMlH1Y=";
25 nativeBuildInputs = [ dpkg ];
37 ln -s "$out/opt/Hyper/hyper" "$out/bin/hyper"
38 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:$out/opt/Hyper:\$ORIGIN" "$out/opt/Hyper/hyper"
42 substituteInPlace $out/share/applications/hyper.desktop \
43 --replace "/opt/Hyper/hyper" "hyper"
46 passthru.tests.test = nixosTests.terminal-emulators.hyper;
50 description = "Terminal built on web technologies";
51 homepage = "https://hyper.is/";
52 maintainers = with maintainers; [ puffnfresh fabiangd ];
53 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
54 license = licenses.mit;
55 platforms = [ "x86_64-linux" ];
56 mainProgram = "hyper";
57 broken = true; # Error: 'node-pty' failed to load