diff options
author | Harrison Harnisch <hharnisc@gmail.com> | 2016-10-22 18:37:17 +0000 |
---|---|---|
committer | Harrison Harnisch <hharnisc@gmail.com> | 2016-10-22 20:10:48 +0000 |
commit | 71b92ecfea0cb6ec11f37a113b4ee690a7331b48 (patch) | |
tree | 168f610af7dd00332011be3ed03d3006656769ef /pkgs/applications/misc/hyper | |
parent | 5e28dcc502f348e58a4009b604efe4bbdc74eb8d (diff) | |
download | nixpkgs-71b92ecfea0cb6ec11f37a113b4ee690a7331b48.tar nixpkgs-71b92ecfea0cb6ec11f37a113b4ee690a7331b48.tar.gz nixpkgs-71b92ecfea0cb6ec11f37a113b4ee690a7331b48.tar.bz2 nixpkgs-71b92ecfea0cb6ec11f37a113b4ee690a7331b48.tar.lz nixpkgs-71b92ecfea0cb6ec11f37a113b4ee690a7331b48.tar.xz nixpkgs-71b92ecfea0cb6ec11f37a113b4ee690a7331b48.tar.zst nixpkgs-71b92ecfea0cb6ec11f37a113b4ee690a7331b48.zip |
Hyperterm: 0.7.6 -> (Hyper) 0.8.3
- rename Hyperterm to Hyper (as per their rebranding) - update to latest version
Diffstat (limited to 'pkgs/applications/misc/hyper')
-rw-r--r-- | pkgs/applications/misc/hyper/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/misc/hyper/default.nix b/pkgs/applications/misc/hyper/default.nix new file mode 100644 index 00000000000..310f8feb2fd --- /dev/null +++ b/pkgs/applications/misc/hyper/default.nix @@ -0,0 +1,42 @@ +{ stdenv, lib, fetchurl, dpkg, gtk2, atk, glib, pango, gdk_pixbuf, cairo +, freetype, fontconfig, dbus, libXi, libXcursor, libXdamage, libXrandr +, libXcomposite, libXext, libXfixes, libXrender, libX11, libXtst, libXScrnSaver +, GConf, nss, nspr, alsaLib, cups, expat, libudev, libpulseaudio }: + +let + libPath = stdenv.lib.makeLibraryPath [ + stdenv.cc.cc gtk2 atk glib pango gdk_pixbuf cairo freetype fontconfig dbus + libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes + libXrender libX11 libXtst libXScrnSaver GConf nss nspr alsaLib cups expat libudev libpulseaudio + ]; +in +stdenv.mkDerivation rec { + version = "0.8.3"; + name = "hyper-${version}"; + src = fetchurl { + url = "https://github.com/zeit/hyper/releases/download/${version}/hyper-${version}-amd64.deb"; + sha256 = "1683gc0fhifn89l9h67yz02pk1xz7p5l3qpiyddr9w21qr9h3lhq"; + }; + buildInputs = [ dpkg ]; + unpackPhase = '' + mkdir pkg + dpkg-deb -x $src pkg + sourceRoot=pkg + ''; + 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" + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.cc.cc ]}" "$out/opt/Hyper/resources/app/node_modules/child_pty/build/Release/exechelper" + mv usr/* "$out/" + ''; + dontPatchELF = true; + meta = with lib; { + description = "A terminal built on web technologies"; + homepage = https://hyper.is/; + maintainers = with maintainers; [ puffnfresh ]; + license = licenses.mit; + platforms = [ "i686-linux" "x86_64-linux" ]; + }; +} |