changed formatter, migrated suckless configurations to flake

This commit is contained in:
ISnortPennies 2023-01-22 19:28:58 -05:00
parent 5e19c6b52f
commit b0b688c43f
97 changed files with 311 additions and 19216 deletions

View file

@ -1,18 +1,18 @@
let
pkgs = import <nixpkgs> { };
pkgs = import <nixpkgs> {};
in
with pkgs;
mkShell rec {
buildInputs = with pkgs; [
xorg.libXScrnSaver
xorg.libX11
# Dev dependencies
rustup
pkg-config
gdk-pixbuf
gtkmm3
libappindicator-gtk3
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
RUST_BACKTRACE = 1;
}
with pkgs;
mkShell rec {
buildInputs = with pkgs; [
xorg.libXScrnSaver
xorg.libX11
# Dev dependencies
rustup
pkg-config
gdk-pixbuf
gtkmm3
libappindicator-gtk3
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
RUST_BACKTRACE = 1;
}

View file

@ -1,17 +1,18 @@
{ lib
, rustPlatform
, fetchFromGitHub
, wrapGAppsHook
, libX11
, libXScrnSaver
, pkg-config
, cairo
, glib
, gdk-pixbuf
, gtkmm3
, pango
, libappindicator-gtk3
, atk
{
lib,
rustPlatform,
fetchFromGitHub,
wrapGAppsHook,
libX11,
libXScrnSaver,
pkg-config,
cairo,
glib,
gdk-pixbuf,
gtkmm3,
pango,
libappindicator-gtk3,
atk,
}:
rustPlatform.buildRustPackage rec {
pname = "afk-cmds";
@ -36,7 +37,7 @@ rustPlatform.buildRustPackage rec {
wrapGAppsHook
];
postFixup = ''
postFixup = ''
wrapProgram $out/bin/afk-cmds \
--prefix LD_LIBRARY_PATH : ${(lib.makeLibraryPath buildInputs)}
mkdir -p $out/share/icons/hicolor/256x256/apps/
@ -48,9 +49,7 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/ISnortPennies/AFKCommands";
description = "";
license = licenses.unlicense;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [];
platforms = platforms.linux;
};
}

View file

@ -1,13 +1,13 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, cmake
, libopus
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
cmake,
libopus,
}:
# yt-dlp and ffmpeg required at runtime
rustPlatform.buildRustPackage rec {
pname = "parrot";
version = "1.5.1";
@ -35,8 +35,7 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/aquelemiguel/parrot";
description = "";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [];
platforms = platforms.linux;
};
}

View file

@ -1,9 +1,9 @@
{ lib
, stdenv
, fetchzip
, glibc
}:
let
{
lib,
stdenv,
fetchzip,
glibc,
}: let
wrapper = ''
#!/bin/sh
export LD_LIBRARY_PATH=${stdenv.cc.cc.lib}/lib/:${glibc}/lib/:/run/opengl-driver/lib/
@ -11,28 +11,27 @@ let
$out/t-rex --no-watchdog \$@
'';
in
stdenv.mkDerivation rec {
pname = "t-rex-miner";
version = "0.26.5";
src = fetchzip {
url = "https://github.com/trexminer/T-Rex/releases/download/${version}/t-rex-${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
'';
meta = with lib; {
homepage = "https://github.com/ISnortPennies/AFKCommands";
description = "";
license = licenses.unlicense;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}
stdenv.mkDerivation rec {
pname = "t-rex-miner";
version = "0.26.5";
src = fetchzip {
url = "https://github.com/trexminer/T-Rex/releases/download/${version}/t-rex-${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
'';
meta = with lib; {
homepage = "https://github.com/ISnortPennies/AFKCommands";
description = "";
license = licenses.unlicense;
maintainers = with maintainers; [];
platforms = platforms.linux;
};
}