2021-05-13 15:50:34 +01:00
|
|
|
{ lib, stdenv, fetchFromGitLab }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yafetch";
|
2021-06-02 10:59:04 +01:00
|
|
|
version = "unstable-2021-06-01";
|
2021-05-13 15:50:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "cyberkitty";
|
|
|
|
repo = pname;
|
2021-06-02 10:59:04 +01:00
|
|
|
rev = "d9bbc1e4abca87028f898473c9a265161af3c287";
|
|
|
|
sha256 = "0hyb5k7drnm9li720z1fdvz7b15xgf7n6yajnz1j98day3k88bqk";
|
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;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|