2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yafetch";
|
2021-07-21 07:28:18 +00:00
|
|
|
version = "unstable-2021-07-18";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "cyberkitty";
|
|
|
|
repo = pname;
|
2021-07-21 07:28:18 +00:00
|
|
|
rev = "f3efbca54df1ffea22cc40034114af141ccff9c1";
|
|
|
|
sha256 = "1cxhrjy9vzq87rzql4dcknkwca7nydysp1p1x4fh1qfw79dfdmxw";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Use the provided NixOS logo automatically
|
|
|
|
prePatch = ''
|
2021-06-04 09:07:49 +00:00
|
|
|
substituteInPlace ./config.h --replace \
|
|
|
|
"#include \"ascii/tux.h\"" "#include \"ascii/nixos.h\""
|
2021-05-20 23:08:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Fixes installation path
|
2021-06-04 09:07:49 +00:00
|
|
|
PREFIX = placeholder "out";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.com/cyberkitty/yafetch";
|
|
|
|
description = "Yet another fetch clone written in C++";
|
|
|
|
license = licenses.gpl2Only;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ ivar ashley ];
|
2021-05-20 23:08:51 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|