mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
mkPkgs -> mkPackages
./pkgs -> ./packages
This commit is contained in:
parent
25f89d03e2
commit
52c2b49425
6 changed files with 2 additions and 2 deletions
80
packages/fastfetch.nix
Normal file
80
packages/fastfetch.nix
Normal 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];
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue