2022-04-20 16:21:15 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-05-13 15:50:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yafetch";
|
2022-04-20 16:21:15 +01:00
|
|
|
version = "unstable-2022-04-20";
|
2021-05-13 15:50:34 +01:00
|
|
|
|
2022-04-20 16:21:15 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kira64xyz";
|
2021-05-13 15:50:34 +01:00
|
|
|
repo = pname;
|
2022-04-20 16:21:15 +01:00
|
|
|
rev = "a118cfc13f0b475db7c266105c10138d838788b8";
|
|
|
|
sha256 = "bSJlerfbJG6h5dDwWQKHnVLH6DEuvuUyqaRuJ7jvOsA=";
|
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 \
|
2022-04-20 16:21:15 +01:00
|
|
|
"#include \"ascii/gnu.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; {
|
2022-04-20 16:21:15 +01:00
|
|
|
homepage = "https://github.com/kira64xyz/yafetch";
|
2021-05-13 15:50:34 +01:00
|
|
|
description = "Yet another fetch clone written in C++";
|
2022-04-20 16:21:15 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2021-06-15 19:58:09 +01:00
|
|
|
maintainers = with maintainers; [ ivar ashley ];
|
2021-05-13 15:50:34 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|