2018-11-23 07:50:02 +00:00
|
|
|
{ stdenv, makeWrapper, fetchurl, dpkg
|
2018-07-17 21:11:16 +01:00
|
|
|
, alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype
|
2018-11-23 07:50:02 +00:00
|
|
|
, gdk_pixbuf, glib, gnome2, nspr, nss, gtk3, gtk2, at-spi2-atk
|
2018-05-02 23:08:30 +01:00
|
|
|
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
|
|
|
|
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, nghttp2
|
2018-11-23 07:50:02 +00:00
|
|
|
, libudev0-shim, glibc, curl, openssl, autoPatchelfHook
|
2018-02-22 19:01:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2018-11-23 07:50:02 +00:00
|
|
|
runtimeLibs = stdenv.lib.makeLibraryPath [
|
|
|
|
curl
|
|
|
|
glibc
|
|
|
|
libudev0-shim
|
|
|
|
nghttp2
|
|
|
|
openssl
|
|
|
|
stdenv.cc.cc
|
2018-02-22 19:01:34 +00:00
|
|
|
];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "insomnia-${version}";
|
2019-01-03 17:14:59 +00:00
|
|
|
version = "6.3.2";
|
2018-02-22 19:01:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/getinsomnia/insomnia/releases/download/v${version}/insomnia_${version}_amd64.deb";
|
2019-01-03 17:14:59 +00:00
|
|
|
sha256 = "15zf5nmsmz3ajb4xmhm3gynn36qp0ark0gah8qd0hqq76n9jmjnp";
|
2018-02-22 19:01:34 +00:00
|
|
|
};
|
|
|
|
|
2018-11-23 07:50:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
at-spi2-atk
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
expat
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
gdk_pixbuf
|
|
|
|
glib
|
|
|
|
gnome2.GConf
|
|
|
|
gnome2.pango
|
|
|
|
gtk2
|
|
|
|
gtk3
|
|
|
|
libX11
|
|
|
|
libXScrnSaver
|
|
|
|
libXcomposite
|
|
|
|
libXcursor
|
|
|
|
libXdamage
|
|
|
|
libXext
|
|
|
|
libXfixes
|
|
|
|
libXi
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
libXtst
|
|
|
|
libxcb
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
stdenv.cc.cc
|
|
|
|
];
|
2018-02-22 19:01:34 +00:00
|
|
|
|
2018-11-23 07:50:02 +00:00
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
2018-02-22 19:01:34 +00:00
|
|
|
|
|
|
|
unpackPhase = "dpkg-deb -x $src .";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/insomnia $out/lib $out/bin
|
|
|
|
|
|
|
|
mv usr/share/* $out/share/
|
|
|
|
mv opt/Insomnia/* $out/share/insomnia
|
|
|
|
mv $out/share/insomnia/*.so $out/lib/
|
|
|
|
|
|
|
|
ln -s $out/share/insomnia/insomnia $out/bin/insomnia
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/insomnia" --prefix LD_LIBRARY_PATH : ${runtimeLibs}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://insomnia.rest/;
|
|
|
|
description = "The most intuitive cross-platform REST API Client";
|
2018-11-23 07:50:02 +00:00
|
|
|
license = licenses.mit;
|
2018-02-22 19:01:34 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ markus1189 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|