at 18.03-beta 42 lines 1.5 kB view raw
1{ stdenv, lib, fetchurl, dpkg, gtk2, atk, glib, pango, gdk_pixbuf, cairo 2, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr 3, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver 4, libxcb 5, GConf, nss, nspr, alsaLib, cups, expat, libudev, libpulseaudio }: 6 7let 8 libPath = stdenv.lib.makeLibraryPath [ 9 stdenv.cc.cc gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus 10 libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libxcb 11 libXrender libX11 libXtst libXScrnSaver GConf nss nspr alsaLib cups expat libudev libpulseaudio 12 ]; 13in 14stdenv.mkDerivation rec { 15 version = "1.4.8"; 16 name = "hyper-${version}"; 17 src = fetchurl { 18 url = "https://github.com/zeit/hyper/releases/download/${version}/hyper_${version}_amd64.deb"; 19 sha256 = "0v31z3p5h3qr8likifbq9kk08fpfyf8g1hrz6f6v90z4b2yhkf51"; 20 }; 21 buildInputs = [ dpkg ]; 22 unpackPhase = '' 23 mkdir pkg 24 dpkg-deb -x $src pkg 25 sourceRoot=pkg 26 ''; 27 installPhase = '' 28 mkdir -p "$out/bin" 29 mv opt "$out/" 30 ln -s "$out/opt/Hyper/hyper" "$out/bin/hyper" 31 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:\$ORIGIN" "$out/opt/Hyper/hyper" 32 mv usr/* "$out/" 33 ''; 34 dontPatchELF = true; 35 meta = with lib; { 36 description = "A terminal built on web technologies"; 37 homepage = https://hyper.is/; 38 maintainers = with maintainers; [ puffnfresh ]; 39 license = licenses.mit; 40 platforms = [ "x86_64-linux" ]; 41 }; 42}