summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix1
-rw-r--r--pkgs/fastfetch.nix80
2 files changed, 81 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 30241ee..0c21488 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -4,6 +4,7 @@ in {
# original packages
cfspeedtest = callPackage ./cfspeedtest.nix {};
check-pr = callPackage ./check-pr.nix {};
+ fastfetch = callPackage ./fastfetch.nix {};
huion = callPackage ./huion.nix {};
mommy = callPackage ./mommy.nix {};
theseus = callPackage ./theseus.nix {inherit (pkgs.nodePackages) pnpm;};
diff --git a/pkgs/fastfetch.nix b/pkgs/fastfetch.nix
new file mode 100644
index 0000000..09f4aea
--- /dev/null
+++ b/pkgs/fastfetch.nix
@@ -0,0 +1,80 @@
+{
+ lib,
+ stdenv,
+ fetchFromGitHub,
+ cmake,
+ ninja,
+ pkg-config,
+ chafa,
+ cjson,
+ dbus,
+ dconf,
+ glib,
+ imagemagick,
+ libGL,
+ libnma,
+ libpulseaudio,
+ mesa,
+ ocl-icd,
+ opencl-headers,
+ pciutils,
+ vulkan-headers,
+ wayland,
+ xfce,
+ xorg,
+ zlib,
+}:
+stdenv.mkDerivation rec {
+ pname = "fastfetch";
+ version = "1.12.2";
+
+ src = fetchFromGitHub {
+ owner = "fastfetch-cli";
+ repo = pname;
+ rev = version;
+ sha256 = "sha256-l9fIm7+dBsOqGoFUYtpYESAjDy3496rDTUDQjbNU4U0=";
+ };
+
+ cmakeFlags = ["-DCMAKE_INSTALL_SYSCONFDIR='etc'"];
+
+ buildInputs = [
+ chafa
+ cjson
+ dbus
+ dconf
+ glib
+ imagemagick
+ libnma
+ libpulseaudio
+ libGL
+ mesa
+ ocl-icd
+ pciutils
+ xfce.xfconf
+ xorg.xrandr
+ zlib
+ ];
+
+ nativeBuildInputs = [
+ cmake
+ ninja
+ pkg-config
+ opencl-headers
+ vulkan-headers
+ xorg.libxcb
+ xorg.libXrandr
+ wayland
+ ];
+
+ postInstall = ''
+ rm -rf $out/etc
+ '';
+
+ meta = with lib; {
+ homepage = "https://github.com/fastfetch-cli/fastfetch";
+ description = "Like neofetch, but much faster because written in C.";
+ license = licenses.mit;
+ platforms = with platforms; platforms.unix ++ platforms.windows;
+ maintainers = with maintainers; [getchoo];
+ };
+}