2021-04-23 19:36:17 +02:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils, ueberzug }:
|
2017-01-22 21:46:31 +01:00
|
|
|
|
2021-02-17 08:48:48 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2019-08-31 07:30:22 +02:00
|
|
|
pname = "neofetch";
|
2021-04-23 19:36:17 +02:00
|
|
|
version = "unstable-2020-11-26";
|
2019-08-31 07:30:22 +02:00
|
|
|
|
2017-01-22 21:46:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dylanaraps";
|
|
|
|
repo = "neofetch";
|
2021-04-23 19:36:17 +02:00
|
|
|
rev = "6dd85d67fc0d4ede9248f2df31b2cd554cca6c2f";
|
|
|
|
sha256 = "sha256-PZjFF/K7bvPIjGVoGqaoR8pWE6Di/qJVKFNcIz7G8xE=";
|
2017-01-22 21:46:31 +01:00
|
|
|
};
|
|
|
|
|
2021-02-17 08:48:48 +01:00
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [ bash ];
|
2021-04-16 16:06:29 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2021-02-17 08:48:48 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs --host neofetch
|
|
|
|
'';
|
2017-01-22 21:46:31 +01:00
|
|
|
|
2021-04-16 16:06:29 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/neofetch \
|
2021-04-23 19:36:17 +02:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ pciutils ueberzug ]}
|
2021-04-16 16:06:29 +02:00
|
|
|
'';
|
|
|
|
|
2017-01-22 21:46:31 +01:00
|
|
|
makeFlags = [
|
2019-08-31 07:30:22 +02:00
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"SYSCONFDIR=${placeholder "out"}/etc"
|
2017-01-22 21:46:31 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-01-22 21:46:31 +01:00
|
|
|
description = "A fast, highly customizable system info script";
|
2020-03-10 10:09:46 +01:00
|
|
|
homepage = "https://github.com/dylanaraps/neofetch";
|
2017-01-22 21:46:31 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2017-07-24 12:25:38 +02:00
|
|
|
maintainers = with maintainers; [ alibabzo konimex ];
|
2021-05-01 22:06:01 +02:00
|
|
|
mainProgram = "neofetch";
|
2017-01-22 21:46:31 +01:00
|
|
|
};
|
|
|
|
}
|