Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insomnia-designer: init at 2020.4.1 #92093

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
92 changes: 92 additions & 0 deletions pkgs/development/web/insomnia/designer.nix
@@ -0,0 +1,92 @@
{ stdenv, makeWrapper, fetchurl, dpkg, alsaLib, atk, cairo, cups, dbus, expat
, fontconfig, freetype, gdk-pixbuf, glib, gnome2, nspr, nss, gtk3, gtk2
, 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-designer";
version = "2020.4.1";

src = fetchurl {
url =
"https://github.com/Kong/insomnia/releases/download/designer@${version}/Insomnia.Designer-${version}.deb";
Pablo1107 marked this conversation as resolved.
Show resolved Hide resolved
Comment on lines +22 to +23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url =
"https://github.com/Kong/insomnia/releases/download/designer@${version}/Insomnia.Designer-${version}.deb";
url = "https://github.com/Kong/insomnia/releases/download/designer@${version}/Insomnia.Designer-${version}.deb";

sha256 = "06jarli3n6anx3hqdwvs1j9cim0dfw59zvhdf6dhp8kgps7z3aq7";
};

nativeBuildInputs =
[ autoPatchelfHook dpkg makeWrapper gobject-introspection wrapGAppsHook ];
Comment on lines +27 to +28
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs =
[ autoPatchelfHook dpkg makeWrapper gobject-introspection wrapGAppsHook ];
nativeBuildInputs = [ autoPatchelfHook dpkg makeWrapper gobject-introspection wrapGAppsHook ];


buildInputs = [
alsaLib
at-spi2-atk
atk
cairo
cups
dbus
expat
fontconfig
freetype
gdk-pixbuf
glib
gnome2.GConf
gnome2.pango
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\ Designer/* $out/share/insomnia
mv $out/share/insomnia/*.so $out/lib/

ln -s $out/share/insomnia/insomnia-designer $out/bin/insomnia-designer
sed -i 's|\/opt\/Insomnia Designer|'$out'/bin|g' $out/share/applications/insomnia-designer.desktop
'';

preFixup = ''
wrapProgram "$out/bin/insomnia-designer" --prefix LD_LIBRARY_PATH : ${runtimeLibs}
'';

meta = with stdenv.lib; {
homepage = "https://insomnia.rest/";
description = "The most intuitive cross-platform REST API Client";
Pablo1107 marked this conversation as resolved.
Show resolved Hide resolved
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ markus1189 babariviere ];
Pablo1107 marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add yourself as maintainer and not other people.

};

Comment on lines +90 to +91
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
};
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -10657,6 +10657,8 @@ in

insomnia = callPackage ../development/web/insomnia { };

insomnia-designer = callPackage ../development/web/insomnia/designer.nix { };

iozone = callPackage ../development/tools/misc/iozone { };

itstool = callPackage ../development/tools/misc/itstool { };
Expand Down