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
postman : 5.5.2 -> 5.5.3 #35201
postman : 5.5.2 -> 5.5.3 #35201
Conversation
@GrahamcOfBorg build postman |
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
@@ -16,10 +16,15 @@ stdenv.mkDerivation rec { | |||
|
|||
buildPhase = ":"; # nothing to build | |||
|
|||
icon = fetchurl { | |||
url = "https://www.getpostman.com/img-rebrand/logo.png"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks likely to break in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namely the checksum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I don't like it either. The icon is in the package that is downloaded initially but I can't find any example using an icon from this package. Is there any way to do that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could take it from here: https://raw.githubusercontent.com/gilbarbara/logos/b595a2b3ecc933b77aa286bc9b76645a3203920e/logos/postman.svg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or upload it somewhere like archive.org
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not take it from the software tarball ?
I get that it's useful to download an icon if there is none in the main package, but why can't I use the one from the package if there is ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should of course take it from the source tarball if there is one. Nobody mentioned it because everyone assumed there isn't probably an icon anymore as you added fetching it from the website.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fpletz could you show me an example of how to do that ?
My problem is that I can't find an example doing that.
What I want is this :
src = fetchurl {
url = "https://dl.pstmn.io/download/version/${version}/linux64";
sha1 = "BC0C6117BEC6D1638FD18A0E2A580617669A9297";
name = "${name}.tar.gz";
};
icon = doSomethingAboutTheDownloadedArchive {}; # <--- this is what I can't figure
desktopItem = makeDesktopItem {
name = "postman";
exec = "postman";
icon = "${icon}";
comment = "API Development Environment";
desktopName = "Postman";
genericName = "Postman";
categories = "Application;Development;";
};
(the icon path is /share/postman/resources/app/assets/icon.png
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also specify the icon name:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rocksndiamonds/default.nix#L16
and install it into the right location: https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rocksndiamonds/default.nix#L36
Motivation for this change
Version update.
Also contains a fix for the desktop icon
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)