diff --git a/pkgs/awakened-poe-trade.nix b/pkgs/awakened-poe-trade.nix new file mode 100644 index 0000000..692c28c --- /dev/null +++ b/pkgs/awakened-poe-trade.nix @@ -0,0 +1,39 @@ +{ + pkgs, + fetchurl, +}: let + name = "awakened-poe-trade"; + version = "3.22.10003"; + description = "Path of Exile trading app for price checking"; + desktopEntry = pkgs.writeText "awakened-poe.desktop" '' + [Desktop Entry] + Type=Application + Version=${version} + Name=Awakened PoE Trade + GenericName=${description} + Icon=/share/applications/awakened-poe-trade.png + Exec=${name} + Terminal=false + Categories=Game + ''; + file = "Awakened-PoE-Trade-${version}.AppImage"; + + icon = pkgs.fetchurl { + url = "https://web.poecdn.com/image/Art/2DItems/Currency/TransferOrb.png"; + sha256 = "sha256-fZ3PU+yE1n/RytkPFAXQhU85KNQStYcSrdgw+OYfJRg="; + }; +in + pkgs.appimageTools.wrapType2 { + name = "awakened-poe-trade"; + src = fetchurl { + url = "https://github.com/SnosMe/awakened-poe-trade/releases/download/v${version}/${file}"; + hash = "sha256-b+cDOmU0s0MqP5ZgCacmAon8UqDejG4HcOqi+Uf2dEM="; + }; + + extraInstallCommands = '' + mkdir -p $out/share/applications + cp ${icon} $out/share/applications/awakened-poe-trade.png + cp ${desktopEntry} $out/share/applications/${name}.desktop + substituteInPlace $out/share/applications/awakened-poe-trade.desktop --replace /share/ $out/share/ + ''; + } diff --git a/pkgs/default.nix b/pkgs/default.nix index ed32292..3482bde 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -5,6 +5,7 @@ zsh-histdb = super.callPackage ./zsh-histdb.nix {}; deploy = super.callPackage ./deploy.nix {}; minify = super.callPackage ./minify {}; + awakened-poe-trade = super.callPackage ./awakened-poe-trade.nix {}; neovim-clean = super.neovim-unwrapped.overrideAttrs (_neovimFinal: neovimPrev: { nativeBuildInputs = (neovimPrev.nativeBuildInputs or []) ++ [super.makeWrapper]; postInstall = diff --git a/users/common/programs/poe.nix b/users/common/programs/poe.nix new file mode 100644 index 0000000..4f696e4 --- /dev/null +++ b/users/common/programs/poe.nix @@ -0,0 +1,14 @@ +{pkgs, ...}: { + home.persistence."/state".directories = [ + ".config/awakened-poe-trade" + ]; + + home.persistence."/persist".directories = [ + ".local/share/pobfrontend" + ]; + + home.packages = [ + pkgs.awakened-poe-trade + pkgs.path-of-building + ]; +} diff --git a/users/patrick/default.nix b/users/patrick/default.nix index 0da9d58..d3eebd8 100644 --- a/users/patrick/default.nix +++ b/users/patrick/default.nix @@ -60,15 +60,16 @@ lib.optionalAttrs (!minimal) { ../common ../common/impermanence.nix - ../common/programs/direnv.nix - ../common/programs/git.nix ../common/programs/bottles.nix - ../common/programs/gdb.nix + ../common/programs/direnv.nix ../common/programs/firefox.nix + ../common/programs/gdb.nix + ../common/programs/git.nix ../common/programs/kitty.nix - ../common/programs/thunderbird.nix - ../common/programs/spicetify.nix ../common/programs/minecraft.nix + ../common/programs/poe.nix + ../common/programs/spicetify.nix + ../common/programs/thunderbird.nix ] ++ { "desktopnix" = [