mkPkgs -> mkPackages

./pkgs -> ./packages
This commit is contained in:
Gerg-L 2023-07-25 22:29:44 -04:00
parent 25f89d03e2
commit 52c2b49425
6 changed files with 2 additions and 2 deletions

80
packages/fastfetch.nix Normal file
View file

@ -0,0 +1,80 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
chafa,
dbus,
dconf,
glib,
imagemagick_light,
libglvnd,
libpulseaudio,
libxcb,
libXrandr,
networkmanager,
ocl-icd,
opencl-headers,
pciutils,
rpm,
sqlite,
vulkan-loader,
wayland,
xfce,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fastfetch";
version = "1.12.2";
src = fetchFromGitHub {
owner = "LinusDierheimer";
repo = finalAttrs.pname;
rev = finalAttrs.version;
hash = "sha256-l9fIm7+dBsOqGoFUYtpYESAjDy3496rDTUDQjbNU4U0=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
chafa
dbus
dconf
glib
imagemagick_light
libglvnd
libpulseaudio
libxcb
libXrandr
networkmanager
ocl-icd
opencl-headers
pciutils
rpm
sqlite
vulkan-loader
wayland
xfce.xfconf
zlib
];
preBuild = ''
export TRASH=$(mktemp -d)
'';
cmakeFlags = [
"-DTARGET_DIR_ETC=$(TRASH)"
];
meta = with lib; {
description = "Like neofetch, but much faster because written in C";
homepage = "https://github.com/fastfetch-cli/fastfetch";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [gerg-l];
};
})

21
packages/images.nix Normal file
View file

@ -0,0 +1,21 @@
{
fetchurl,
runCommand,
imagemagick,
}:
runCommand "images" {
recursion = fetchurl {
url = "https://github.com/NixOS/nixos-artwork/raw/bcdd2770f5f4839fddc9b503e68db2bc3a87ca4d/wallpapers/nix-wallpaper-recursive.png";
sha256 = "sha256-YvFrlysNGMwJ7eMFOoz0KI8AjoPN3ao+AVOgnVZzkFE=";
};
logo = fetchurl {
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/376ed4ba8dc2e611b7e8a62fdc680967ead5bd87/logo/nix-snowflake.svg";
sha256 = "sha256-SCuQlSPB14GFTq4XvExJ0QEuK2VIbrd5YYKHLRG/q5I=";
};
buildInputs = [imagemagick];
}
''
mkdir -p $out
cp $recursion $out/recursion.png
convert -background none -size 512x512 $logo $out/logo.png
''

44
packages/parrot.nix Normal file
View file

@ -0,0 +1,44 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
cmake,
libopus,
yt-dlp,
ffmpeg,
makeWrapper,
}:
rustPlatform.buildRustPackage
{
pname = "parrot";
version = "1.6.0";
src = fetchFromGitHub {
owner = "aquelemiguel";
repo = "parrot";
rev = "6b1df01bd9cce1c0d8446dea720c4a32ff935514";
hash = "sha256-f6YAdsq2ecsOCvk+A8wsUu+ywQnW//gCAkVLF0HTn8c=";
};
cargoHash = "sha256-e4NHgwoNkZ0//rugHrP0gU3pntaMeBJsV/YSzJfD8r4=";
nativeBuildInputs = [
pkg-config
cmake
makeWrapper
];
buildInputs = [
libopus
openssl
];
postInstall = ''
wrapProgram $out/bin/parrot \
--prefix PATH : ${lib.makeBinPath [
yt-dlp
ffmpeg
]}
'';
}

18
packages/t-rex.nix Normal file
View file

@ -0,0 +1,18 @@
{
stdenv,
writeShellScriptBin,
fetchzip,
glibc,
}: let
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
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 "$@"
''