feat: poe shit
This commit is contained in:
parent
700889cf0a
commit
25efeeabf2
39
pkgs/awakened-poe-trade.nix
Normal file
39
pkgs/awakened-poe-trade.nix
Normal file
|
@ -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/
|
||||
'';
|
||||
}
|
|
@ -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 =
|
||||
|
|
14
users/common/programs/poe.nix
Normal file
14
users/common/programs/poe.nix
Normal file
|
@ -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
|
||||
];
|
||||
}
|
|
@ -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" = [
|
||||
|
|
Loading…
Reference in a new issue