mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
updated afk-cmds pkg
removed AFKCommands moved moonfly plugin to correct location switched from alacritty to st
This commit is contained in:
parent
ca947d62b9
commit
f353281d6b
12 changed files with 107 additions and 301 deletions
|
|
@ -1,46 +0,0 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, writeText
|
||||
, fetchFromGitHub
|
||||
, xorg
|
||||
, glibc
|
||||
, t-rex-miner
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "AFKCommands";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ISnortPennies";
|
||||
repo = "AFKCommands";
|
||||
rev = "6bb107e8f4ff593e1540986263fad9cb60e7e79a";
|
||||
sha256 = "sha256-toJPE/8obPXaSiw0LFRF05AIuD8gGL3YB10cn6FlvEc=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
xorg.libXScrnSaver
|
||||
xorg.libX11
|
||||
];
|
||||
|
||||
ConfigText = writeText "config.h" ''
|
||||
const int AFK = 300;
|
||||
const int RESTART = 60;
|
||||
const char* COMMANDS[] = {
|
||||
"xmrig --no-color -o rx.unmineable.com:3333 -u XMR:46vHuD3G9wKVpoBV7rwQQzCRfBw3rxUo3fzj1G9mSFqPg2A71pspHsTTD2Y5hmPXFuVUXRzFj6NevVRUHriDerhw5JcNkXV.nixos",
|
||||
"t-rex --no-color -a autolykos2 -o autolykos.unmineable.com:3333 -u XMR:46vHuD3G9wKVpoBV7rwQQzCRfBw3rxUo3fzj1G9mSFqPg2A71pspHsTTD2Y5hmPXFuVUXRzFj6NevVRUHriDerhw5JcNkXV.nixos --mt 4"
|
||||
};
|
||||
'';
|
||||
configurePhase = ''
|
||||
mkdir -p $out/bin
|
||||
export C_INCLUDE_PATH=$out
|
||||
cp $ConfigText $out/config.h
|
||||
export PREFIX=$out
|
||||
'';
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ISnortPennies/AFKCommands";
|
||||
description = "";
|
||||
license = licenses.unlicense;
|
||||
maintainers = with maintainers; [ ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +1,17 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, xorg
|
||||
, wrapGAppsHook
|
||||
, libX11
|
||||
, libXScrnSaver
|
||||
, pkg-config
|
||||
, cairo
|
||||
, glib
|
||||
, gdk-pixbuf
|
||||
, gtkmm3
|
||||
, pango
|
||||
, libappindicator-gtk3
|
||||
, atk
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "afk-cmds";
|
||||
|
|
@ -10,16 +20,34 @@ rustPlatform.buildRustPackage rec {
|
|||
src = fetchFromGitHub {
|
||||
owner = "ISnortPennies";
|
||||
repo = "afk-cmds";
|
||||
rev = "6a131c4892ea411281426d1165a48607e556f729";
|
||||
sha256 = "sha256-LK6XeQc5Rc7KxwL2r2L3dCAKtbENuigbyTTuS+7JKnQ=";
|
||||
rev = "b345d5a038a86c6ca31d3bd8800ac759da912a22";
|
||||
sha256 = "sha256-yleq8bg3ZnilbYTNXRteBALiJ/fIXOxXxqf966OokqQ=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
xorg.libXScrnSaver
|
||||
xorg.libX11
|
||||
];
|
||||
|
||||
cargoSha256 = "sha256-Osxg/KuHOdnz8UYnbT69dmNFLHW6Cq1fLb32/UJeDUg=";
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXScrnSaver
|
||||
cairo
|
||||
glib
|
||||
gdk-pixbuf
|
||||
gtkmm3
|
||||
pango
|
||||
libappindicator-gtk3
|
||||
atk
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/afk-cmds \
|
||||
--prefix LD_LIBRARY_PATH : ${(lib.makeLibraryPath buildInputs)}
|
||||
mkdir -p $out/share/icons/hicolor/256x256/apps/
|
||||
cp $src/afk-icon.png $out/share/icons/hicolor/256x256/apps/afk-icon.png
|
||||
'';
|
||||
cargoSha256 = "sha256-CPpFUdgb0zTZAVlv4uhJ0Y7eocCjuEZNgQJdNwV1FI4=";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ISnortPennies/AFKCommands";
|
||||
|
|
@ -28,5 +56,6 @@ rustPlatform.buildRustPackage rec {
|
|||
maintainers = with maintainers; [ ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue