2021-10-17 09:34:42 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, viu }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "uwufetch";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.0";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TheDarkBug";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-2kktKdQ1xjQRIQR2auwveHgNWGaX1jdJsdlgWrH6l2g=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# cannot find images in /usr
|
|
|
|
./fix-paths.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
makeFlags = [
|
|
|
|
"UWUFETCH_VERSION=${version}"
|
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
installFlags = [
|
2022-10-06 18:32:54 +00:00
|
|
|
"DESTDIR=${placeholder "out"}"
|
|
|
|
"ETC_DIR=${placeholder "out"}"
|
2021-10-17 09:34:42 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteAllInPlace uwufetch.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/uwufetch \
|
|
|
|
--prefix PATH ":" ${lib.makeBinPath [ viu ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A meme system info tool for Linux";
|
|
|
|
homepage = "https://github.com/TheDarkBug/uwufetch";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ lourkeur ];
|
|
|
|
};
|
|
|
|
}
|