-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
91 lines (79 loc) · 2.82 KB
/
flake.nix
File metadata and controls
91 lines (79 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
description = "bfetch - The fastest system information fetch tool in the universe";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = {
default = pkgs.stdenv.mkDerivation {
pname = "bfetch";
version = "1.2.0-ricemeat";
src = ./.;
nativeBuildInputs = with pkgs; [
gcc
gnumake
];
buildPhase = ''
make fast
'';
installPhase = ''
mkdir -p $out/bin
cp bfetch $out/bin/
'';
meta = with pkgs.lib; {
description = "Ultra-fast system information fetch tool with Gentoo support";
longDescription = ''
bfetch is a lightning-fast system information display tool written in C.
It's optimized for Bedrock Linux and other systems, running 55x faster
than fastfetch with comprehensive package manager support.
Features:
- Beautiful ASCII art with Nord color scheme (Bedrock + Gentoo modes)
- 0.002 second execution time (55x faster than fastfetch)
- Direct filesystem access for all package managers
- Perfect GPU detection (NVIDIA GeForce RTX format)
- Fixed terminal detection (shows actual terminal, not shell)
- --gentoo flag for Gentoo ASCII art
- Support for RPM, DPKG, Pacman, Emerge, Nix packages
- Aggressive compiler optimizations
'';
homepage = "https://github.com/Mjoyufull/bfetch";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ ];
};
};
bfetch = self.packages.${system}.default;
};
devShells = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
gcc
gnumake
gdb
valgrind
];
shellHook = ''
echo "bfetch development environment loaded!"
echo "Build with: make fast"
echo "Run with: ./bfetch"
'';
};
};
apps = {
default = {
type = "app";
program = "${self.packages.${system}.default}/bin/bfetch";
meta = {
description = "Ultra-fast system information fetch tool";
platforms = pkgs.lib.platforms.linux;
};
};
};
});
}