added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
53
nyx/flake/pkgs/nicksfetch.nix
Normal file
53
nyx/flake/pkgs/nicksfetch.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
bash,
|
||||
makeWrapper,
|
||||
pciutils,
|
||||
x11Support ? true,
|
||||
ueberzug,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "nicksfetch";
|
||||
version = "unstable-2021-12-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dylanaraps";
|
||||
repo = "neofetch";
|
||||
rev = "ccd5d9f52609bbdcd5d8fa78c4fdb0f12954125f";
|
||||
sha256 = "sha256-9MoX6ykqvd2iB0VrZCfhSyhtztMpBTukeKejfAWYW1w=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./patches/0002-nicksfetch.patch
|
||||
];
|
||||
|
||||
outputs = ["out" "man"];
|
||||
|
||||
strictDeps = true;
|
||||
buildInputs = [bash];
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
postPatch = ''
|
||||
patchShebangs --host neofetch
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/neofetch \
|
||||
--prefix PATH : ${lib.makeBinPath ([pciutils] ++ lib.optional x11Support ueberzug)}
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
"SYSCONFDIR=${placeholder "out"}/etc"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A fast, highly customizable system info script";
|
||||
homepage = "https://github.com/dylanaraps/neofetch";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [alibabzo konimex notashelf];
|
||||
mainProgram = "neofetch";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue