2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, makeWrapper, fetchurl, dpkg, alsaLib, atk, cairo, cups, dbus, expat
|
2020-10-27 00:29:36 +00:00
|
|
|
, fontconfig, freetype, gdk-pixbuf, glib, gnome2, pango, nspr, nss, gtk3, gtk2
|
2020-04-24 23:36:52 +00:00
|
|
|
, at-spi2-atk, gsettings-desktop-schemas, gobject-introspection, wrapGAppsHook
|
|
|
|
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
|
|
|
|
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, nghttp2
|
|
|
|
, libudev0-shim, glibc, curl, openssl, autoPatchelfHook }:
|
|
|
|
|
|
|
|
let
|
|
|
|
runtimeLibs = stdenv.lib.makeLibraryPath [
|
|
|
|
curl
|
|
|
|
glibc
|
|
|
|
libudev0-shim
|
|
|
|
nghttp2
|
|
|
|
openssl
|
|
|
|
stdenv.cc.cc
|
|
|
|
];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "insomnia";
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "2020.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
2020-12-03 08:41:04 +00:00
|
|
|
"https://github.com/Kong/insomnia/releases/download/core%40${version}/Insomnia.Core-${version}.deb";
|
|
|
|
sha256 = "0pxf6nphb6k2szgapqkhjavdzq1blg34v1zj47l76r0iqxrpm3va";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs =
|
|
|
|
[ autoPatchelfHook dpkg makeWrapper gobject-introspection wrapGAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
at-spi2-atk
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
expat
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gnome2.GConf
|
2020-10-27 00:29:36 +00:00
|
|
|
pango
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk2
|
|
|
|
gtk3
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
libX11
|
|
|
|
libXScrnSaver
|
|
|
|
libXcomposite
|
|
|
|
libXcursor
|
|
|
|
libXdamage
|
|
|
|
libXext
|
|
|
|
libXfixes
|
|
|
|
libXi
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
libXtst
|
|
|
|
libxcb
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
stdenv.cc.cc
|
|
|
|
];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
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
|
|
|
|
sed -i 's|\/opt\/Insomnia|'$out'/bin|g' $out/share/applications/insomnia.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ markus1189 babariviere ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|