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