added meta.mainProgram and deleted fastfetch

This commit is contained in:
Gerg-L 2023-08-04 23:52:38 -04:00
parent 8694fbce19
commit 7c5a635089
2 changed files with 1 additions and 80 deletions

View file

@ -1,80 +0,0 @@
{
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];
};
})

View file

@ -41,4 +41,5 @@ rustPlatform.buildRustPackage
ffmpeg ffmpeg
]} ]}
''; '';
meta.mainProgram = "parrot";
} }