mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
removed IFD's
made t-rex slightly less scuffed deleted afk-cmds
This commit is contained in:
parent
04522f424d
commit
8d1ac4c573
7 changed files with 80 additions and 147 deletions
|
|
@ -1,53 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
wrapGAppsHook,
|
||||
libX11,
|
||||
libXScrnSaver,
|
||||
pkg-config,
|
||||
cairo,
|
||||
glib,
|
||||
gdk-pixbuf,
|
||||
gtkmm3,
|
||||
pango,
|
||||
libappindicator-gtk3,
|
||||
atk,
|
||||
fetchFromGitHub,
|
||||
}: let
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXScrnSaver
|
||||
cairo
|
||||
glib
|
||||
gdk-pixbuf
|
||||
gtkmm3
|
||||
pango
|
||||
libappindicator-gtk3
|
||||
atk
|
||||
];
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
name = "afk-cmds";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Gerg-L";
|
||||
repo = "afk-cmds";
|
||||
rev = "b345d5a038a86c6ca31d3bd8800ac759da912a22";
|
||||
sha256 = "sha256-yleq8bg3ZnilbYTNXRteBALiJ/fIXOxXxqf966OokqQ=";
|
||||
};
|
||||
|
||||
inherit buildInputs;
|
||||
|
||||
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-r20g5Tkj2ft1ho/fghg+qwiGOUay8HCIrBbg+y8kQXQ=";
|
||||
}
|
||||
|
|
@ -10,40 +10,35 @@
|
|||
ffmpeg,
|
||||
makeWrapper,
|
||||
}:
|
||||
# yt-dlp and ffmpeg required at runtime
|
||||
let
|
||||
rustPlatform.buildRustPackage
|
||||
{
|
||||
pname = "parrot";
|
||||
version = "1.6.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "aquelemiguel";
|
||||
repo = "parrot";
|
||||
rev = "6b1df01bd9cce1c0d8446dea720c4a32ff935514";
|
||||
hash = "sha256-f6YAdsq2ecsOCvk+A8wsUu+ywQnW//gCAkVLF0HTn8c=";
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage
|
||||
{
|
||||
pname = "parrot";
|
||||
version = "1.6.0";
|
||||
inherit src;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
cmake
|
||||
makeWrapper
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
cmake
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libopus
|
||||
openssl
|
||||
];
|
||||
buildInputs = [
|
||||
libopus
|
||||
openssl
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/parrot \
|
||||
--prefix PATH ${lib.makeBinPath [
|
||||
yt-dlp
|
||||
ffmpeg
|
||||
]}'';
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/parrot \
|
||||
--prefix PATH ${lib.makeBinPath [
|
||||
yt-dlp
|
||||
ffmpeg
|
||||
]}'';
|
||||
|
||||
cargoLock.lockFile = "${src}/Cargo.lock";
|
||||
|
||||
RUSTC_BOOTSTRAP = 1;
|
||||
}
|
||||
cargoHash = "sha256-e4NHgwoNkZ0//rugHrP0gU3pntaMeBJsV/YSzJfD8r4=";
|
||||
RUSTC_BOOTSTRAP = 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,18 @@
|
|||
{
|
||||
stdenv,
|
||||
writeShellScriptBin,
|
||||
fetchzip,
|
||||
glibc,
|
||||
}: let
|
||||
wrapper = ''
|
||||
#!/bin/sh
|
||||
export LD_LIBRARY_PATH=${stdenv.cc.cc.lib}/lib/:${glibc}/lib/:/run/opengl-driver/lib/
|
||||
exec ${glibc}/lib64/ld-linux-x86-64.so.2 \
|
||||
$out/t-rex --no-watchdog \$@
|
||||
'';
|
||||
src = fetchzip {
|
||||
url = "https://github.com/trexminer/T-Rex/releases/download/0.26.8/t-rex-0.26.8-linux.tar.gz";
|
||||
sha256 = "sha256-qM/YIMqcntVYD8zJGCORQgIn1h4J4CDobyXwcdK3li8=";
|
||||
stripRoot = false;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
version = "0.26.5";
|
||||
pname = "t-rex-miner";
|
||||
src = fetchzip {
|
||||
url = "https://github.com/trexminer/T-Rex/releases/download/${finalAttrs.version}/t-rex-${finalAttrs.version}-linux.tar.gz";
|
||||
sha256 = "sha256-eGOTfb03R2ck/6GMY6tPmTifYT9aVv3dNDQ5jRVlz58=";
|
||||
stripRoot = false;
|
||||
};
|
||||
installPhase = ''
|
||||
install -Dm555 $src/t-rex $out/t-rex
|
||||
mkdir -p $out/bin
|
||||
touch $out/bin/t-rex
|
||||
echo "${wrapper}" > $out/bin/t-rex
|
||||
chmod +x $out/bin/t-rex
|
||||
'';
|
||||
})
|
||||
writeShellScriptBin "t-rex"
|
||||
''
|
||||
LD_LIBRARY_PATH=${stdenv.cc.cc.lib}/lib/:${glibc}/lib/:/run/opengl-driver/lib/
|
||||
exec ${glibc}/lib64/ld-linux-x86-64.so.2 \
|
||||
${src}/t-rex --no-watchdog "$@"
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue