2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yafetch";
|
2021-06-04 09:07:49 +00:00
|
|
|
version = "unstable-2021-06-01";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "cyberkitty";
|
|
|
|
repo = pname;
|
2021-06-04 09:07:49 +00:00
|
|
|
rev = "d9bbc1e4abca87028f898473c9a265161af3c287";
|
|
|
|
sha256 = "0hyb5k7drnm9li720z1fdvz7b15xgf7n6yajnz1j98day3k88bqk";
|
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;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|