git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34681 from xurei/master

postman: init at 5.5.2

commit7fad46051e640cde165e552d5dae62684a40abab authorAndreas Rammhold <andreas@rammhold.de> dateSun 11 Feb 2018, 20:43 (9 years ago) parent169216f63a4cbf
3 files changed+97
lib/licenses.nix+6 pkgs/development/web/postman/default.nix+89 pkgs/top-level/all-packages.nix+2
lib/licenses.nix+6
@@ -487,6 +487,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
487487 fullName = "PostgreSQL License";
488488 };
489489
490+ postman = {
491+ fullName = "Postman EULA";
492+ url = https://www.getpostman.com/licenses/postman_base_app;
493+ free = false;
494+ };
495+
490496 psfl = spdx {
491497 spdxId = "Python-2.0";
492498 fullName = "Python Software Foundation License version 2";
pkgs/development/web/postman/default.nixnew file+89
@@ -0,0 +1,89 @@
1+{ stdenv, lib, gnome2, fetchurl, pkgs, xlibs, udev, makeWrapper, makeDesktopItem }:
2+
3+stdenv.mkDerivation rec {
4+ name = "postman-${version}";
5+ version = "5.5.2";
6+
7+ src = fetchurl {
8+ url = "https://dl.pstmn.io/download/version/${version}/linux64";
9+ sha1 = "68886197A8375E860AB880547838FEFC9E12FC64";
10+ name = "${name}.tar.gz";
11+ };
12+
13+ nativeBuildInputs = [ makeWrapper ];
14+
15+ dontPatchELF = true;
16+
17+ buildPhase = ":"; # nothing to build
18+
19+ desktopItem = makeDesktopItem {
20+ name = "postman";
21+ exec = "postman";
22+ icon = "$out/share/postman/resources/app/assets/icon.png";
23+ comment = "API Development Environment";
24+ desktopName = "Postman";
25+ genericName = "Postman";
26+ categories = "Application;Development;";
27+ };
28+
29+ installPhase = ''
30+ mkdir -p $out/share/postman
31+ mkdir -p $out/share/applications
32+ cp -R * $out/share/postman
33+ mkdir -p $out/bin
34+ ln -s $out/share/postman/Postman $out/bin/postman
35+ ln -s ${desktopItem}/share/applications/* $out/share/applications/
36+ '';
37+
38+ preFixup = let
39+ libPath = lib.makeLibraryPath [
40+ stdenv.cc.cc.lib
41+ gnome2.pango
42+ gnome2.GConf
43+ pkgs.atk
44+ pkgs.alsaLib
45+ pkgs.cairo
46+ pkgs.cups
47+ pkgs.dbus_daemon.lib
48+ pkgs.expat
49+ pkgs.gdk_pixbuf
50+ pkgs.glib
51+ pkgs.gtk2-x11
52+ pkgs.freetype
53+ pkgs.fontconfig
54+ pkgs.nss
55+ pkgs.nspr
56+ pkgs.udev.lib
57+ xlibs.libX11
58+ xlibs.libxcb
59+ xlibs.libXi
60+ xlibs.libXcursor
61+ xlibs.libXdamage
62+ xlibs.libXrandr
63+ xlibs.libXcomposite
64+ xlibs.libXext
65+ xlibs.libXfixes
66+ xlibs.libXrender
67+ xlibs.libX11
68+ xlibs.libXtst
69+ xlibs.libXScrnSaver
70+ ];
71+ in ''
72+ patchelf \
73+ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
74+ --set-rpath "${libPath}:$out/share/postman" \
75+ $out/share/postman/Postman
76+ patchelf --set-rpath "${libPath}" $out/share/postman/libnode.so
77+ patchelf --set-rpath "${libPath}" $out/share/postman/libffmpeg.so
78+
79+ wrapProgram $out/share/postman/Postman --prefix LD_LIBRARY_PATH : ${libPath}
80+ '';
81+
82+ meta = with stdenv.lib; {
83+ homepage = https://www.getpostman.com;
84+ description = "API Development Environment";
85+ license = stdenv.lib.licenses.postman;
86+ platforms = [ "x86_64-linux" ];
87+ maintainers = with maintainers; [ xurei ];
88+ };
89+}
pkgs/top-level/all-packages.nix+2
@@ -7837,6 +7837,8 @@ with pkgs;
78377837
78387838 postiats-utilities = callPackage ../development/tools/postiats-utilities {};
78397839
7840+ postman = callPackage ../development/web/postman {};
7841+
78407842 pprof = callPackage ../development/tools/profiling/pprof { };
78417843
78427844 pyprof2calltree = pythonPackages.callPackage ../development/tools/profiling/pyprof2calltree { };