mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
Merge pull request #35201 from xurei/app/postman
postman : 5.5.2 -> 5.5.3
This commit is contained in:
commit
edf5548958
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "postman-${version}";
|
name = "postman-${version}";
|
||||||
version = "5.5.2";
|
version = "5.5.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://dl.pstmn.io/download/version/${version}/linux64";
|
url = "https://dl.pstmn.io/download/version/${version}/linux64";
|
||||||
sha1 = "68886197A8375E860AB880547838FEFC9E12FC64";
|
sha1 = "BC0C6117BEC6D1638FD18A0E2A580617669A9297";
|
||||||
name = "${name}.tar.gz";
|
name = "${name}.tar.gz";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -16,10 +16,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildPhase = ":"; # nothing to build
|
buildPhase = ":"; # nothing to build
|
||||||
|
|
||||||
|
icon = fetchurl {
|
||||||
|
url = "https://www.getpostman.com/img-rebrand/logo.png";
|
||||||
|
sha256 = "0jdhl9c07b1723j2f172z3s5p5lh8sqa1rcvdzz3h6z5zwn21g7v";
|
||||||
|
};
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "postman";
|
name = "postman";
|
||||||
exec = "postman";
|
exec = "postman";
|
||||||
icon = "$out/share/postman/resources/app/assets/icon.png";
|
icon = "${icon}";
|
||||||
comment = "API Development Environment";
|
comment = "API Development Environment";
|
||||||
desktopName = "Postman";
|
desktopName = "Postman";
|
||||||
genericName = "Postman";
|
genericName = "Postman";
|
||||||
@ -28,10 +33,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/postman
|
mkdir -p $out/share/postman
|
||||||
mkdir -p $out/share/applications
|
|
||||||
cp -R * $out/share/postman
|
cp -R * $out/share/postman
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s $out/share/postman/Postman $out/bin/postman
|
ln -s $out/share/postman/Postman $out/bin/postman
|
||||||
|
|
||||||
|
mkdir -p $out/share/applications
|
||||||
ln -s ${desktopItem}/share/applications/* $out/share/applications/
|
ln -s ${desktopItem}/share/applications/* $out/share/applications/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user