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

awakened-poe-trade: init at 3.25.102 #341252

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14660,6 +14660,12 @@
githubId = 7845120;
name = "Alex Martens";
};
nezia = {
email = "[email protected]";
github = "nezia1";
githubId = 43719748;
name = "Anthony Rodriguez";
};
ngerstle = {
name = "Nicholas Gerstle";
email = "[email protected]";
Expand Down
66 changes: 66 additions & 0 deletions pkgs/by-name/aw/awakened-poe-trade/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
lib,
fetchurl,
stdenv,
appimageTools,
makeWrapper,
electron,
xorg,
}:

stdenv.mkDerivation rec {
pname = "awakened-poe-trade";
version = "3.25.102";

src = fetchurl {
url = "https://github.com/SnosMe/awakened-poe-trade/releases/download/v${version}/Awakened-PoE-Trade-${version}.AppImage";
hash = "sha256-lcdKJ+B8NQmyMsv+76+eeESSrfR/7Mq6svO5VKaoNUY=";
};

appimageContents = appimageTools.extractType2 {
name = "${pname}-${version}";
inherit src;
Comment on lines +21 to +22
Copy link
Contributor

Choose a reason for hiding this comment

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

This fails evaluation for me. I think, didn't test, you need to do today:

Suggested change
name = "${pname}-${version}";
inherit src;
inherit pname src version;

};

dontUnpack = true;
dontConfigure = true;
dontBuild = true;

nativeBuildInputs = [ makeWrapper ];

installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/awakened-poe-trade $out/share/applications

cp -a ${appimageContents}/{locales,resources} $out/share/awakened-poe-trade
cp -a ${appimageContents}/awakened-poe-trade.desktop $out/share/applications/
cp -a ${appimageContents}/usr/share/icons $out/share

substituteInPlace $out/share/applications/awakened-poe-trade.desktop \
--replace-fail 'Exec=AppRun' 'Exec=awakened-poe-trade'

runHook postInstall
'';

postFixup = ''
makeWrapper ${lib.getExe electron} $out/bin/awakened-poe-trade \
--add-flags $out/share/awakened-poe-trade/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${
lib.makeLibraryPath [
xorg.libXtst
xorg.libXt
]
}"
'';

meta = {
description = "Path of Exile trading app for price checking";
homepage = "https://github.com/SnosMe/awakened-poe-trade";
changelog = "https://github.com/SnosMe/awakened-poe-trade/releases/tag/v${version}";
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
license = lib.licenses.mit;
maintainers = [ lib.maintainers.nezia ];
platforms = lib.platforms.linux;
mainProgram = "awakened-poe-trade";
};
}