2022-04-20 15:21:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-05-13 14:50:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yafetch";
|
2022-04-20 15:21:15 +00:00
|
|
|
version = "unstable-2022-04-20";
|
2021-05-13 14:50:34 +00:00
|
|
|
|
2022-04-20 15:21:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kira64xyz";
|
2021-05-13 14:50:34 +00:00
|
|
|
repo = pname;
|
2022-04-20 15:21:15 +00:00
|
|
|
rev = "a118cfc13f0b475db7c266105c10138d838788b8";
|
|
|
|
sha256 = "bSJlerfbJG6h5dDwWQKHnVLH6DEuvuUyqaRuJ7jvOsA=";
|
2021-05-13 14:50:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Use the provided NixOS logo automatically
|
|
|
|
prePatch = ''
|
2021-06-02 09:59:04 +00:00
|
|
|
substituteInPlace ./config.h --replace \
|
2022-04-20 15:21:15 +00:00
|
|
|
"#include \"ascii/gnu.h\"" "#include \"ascii/nixos.h\""
|
2023-02-05 13:56:47 +00:00
|
|
|
|
|
|
|
sed '1i#include <array>' -i config.h # gcc12
|
2021-05-13 14:50:34 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Fixes installation path
|
2021-06-02 09:59:04 +00:00
|
|
|
PREFIX = placeholder "out";
|
2021-05-13 14:50:34 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-20 15:21:15 +00:00
|
|
|
homepage = "https://github.com/kira64xyz/yafetch";
|
2021-05-13 14:50:34 +00:00
|
|
|
description = "Yet another fetch clone written in C++";
|
2022-04-20 15:21:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-06-15 18:58:09 +00:00
|
|
|
maintainers = with maintainers; [ ivar ashley ];
|
2021-05-13 14:50:34 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "yafetch";
|
2021-05-13 14:50:34 +00:00
|
|
|
};
|
|
|
|
}
|