2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, makeWrapper, fetchurl, dpkg, alsa-lib, atk, cairo, cups, dbus, expat
|
2022-02-11 14:08:36 +00:00
|
|
|
, fontconfig, freetype, gdk-pixbuf, glib, pango, mesa, nspr, nss, gtk3
|
2019-11-06 09:37:31 +00:00
|
|
|
, at-spi2-atk, gsettings-desktop-schemas, gobject-introspection, wrapGAppsHook
|
2018-05-02 23:08:30 +01:00
|
|
|
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
|
2022-03-15 01:36:54 +00:00
|
|
|
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, libxshmfence, nghttp2
|
2019-11-06 09:37:31 +00:00
|
|
|
, libudev0-shim, glibc, curl, openssl, autoPatchelfHook }:
|
2018-02-22 19:01:34 +00:00
|
|
|
|
|
|
|
let
|
2021-01-23 17:15:07 +00:00
|
|
|
runtimeLibs = lib.makeLibraryPath [
|
2018-11-23 07:50:02 +00:00
|
|
|
curl
|
|
|
|
glibc
|
|
|
|
libudev0-shim
|
|
|
|
nghttp2
|
|
|
|
openssl
|
2018-02-22 19:01:34 +00:00
|
|
|
];
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "insomnia";
|
2022-09-28 19:44:15 +01:00
|
|
|
version = "2022.6.0";
|
2018-02-22 19:01:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-06 09:37:31 +00:00
|
|
|
url =
|
2020-11-10 00:37:50 +00:00
|
|
|
"https://github.com/Kong/insomnia/releases/download/core%40${version}/Insomnia.Core-${version}.deb";
|
2022-09-28 19:44:15 +01:00
|
|
|
sha256 = "sha256-ARGIcNHnqQEyp1JVNV59FvvYv9JTSS55R+lTHl0IrWk=";
|
2018-02-22 19:01:34 +00:00
|
|
|
};
|
|
|
|
|
2022-06-04 07:24:11 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
makeWrapper
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2019-05-22 12:03:39 +01:00
|
|
|
|
2018-11-23 07:50:02 +00:00
|
|
|
buildInputs = [
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2018-11-23 07:50:02 +00:00
|
|
|
at-spi2-atk
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
expat
|
|
|
|
fontconfig
|
|
|
|
freetype
|
2019-05-22 12:03:39 +01:00
|
|
|
gdk-pixbuf
|
2018-11-23 07:50:02 +00:00
|
|
|
glib
|
2020-10-25 19:38:25 +00:00
|
|
|
pango
|
2018-11-23 07:50:02 +00:00
|
|
|
gtk3
|
2019-05-22 15:19:30 +01:00
|
|
|
gsettings-desktop-schemas
|
2018-11-23 07:50:02 +00:00
|
|
|
libX11
|
|
|
|
libXScrnSaver
|
|
|
|
libXcomposite
|
|
|
|
libXcursor
|
|
|
|
libXdamage
|
|
|
|
libXext
|
|
|
|
libXfixes
|
|
|
|
libXi
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
libXtst
|
|
|
|
libxcb
|
2022-03-15 01:36:54 +00:00
|
|
|
libxshmfence
|
2021-04-09 12:27:10 +01:00
|
|
|
mesa # for libgbm
|
2018-11-23 07:50:02 +00:00
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
];
|
2018-02-22 19:01:34 +00:00
|
|
|
|
2018-11-23 07:50:02 +00:00
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
2022-06-04 07:24:11 +01:00
|
|
|
dontWrapGApps = 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
|
|
|
|
|
|
|
|
ln -s $out/share/insomnia/insomnia $out/bin/insomnia
|
2019-04-19 06:37:17 +01:00
|
|
|
sed -i 's|\/opt\/Insomnia|'$out'/bin|g' $out/share/applications/insomnia.desktop
|
2018-02-22 19:01:34 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/insomnia" --prefix LD_LIBRARY_PATH : ${runtimeLibs}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-06 09:37:31 +00:00
|
|
|
homepage = "https://insomnia.rest/";
|
2018-02-22 19:01:34 +00:00
|
|
|
description = "The most intuitive cross-platform REST API Client";
|
2022-06-16 23:11:43 +01:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2018-11-23 07:50:02 +00:00
|
|
|
license = licenses.mit;
|
2018-02-22 19:01:34 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-11-06 09:37:31 +00:00
|
|
|
maintainers = with maintainers; [ markus1189 babariviere ];
|
2018-02-22 19:01:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|