2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yafetch";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "unstable-2022-04-20";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kira64xyz";
|
2021-05-20 23:08:51 +00:00
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "a118cfc13f0b475db7c266105c10138d838788b8";
|
|
|
|
sha256 = "bSJlerfbJG6h5dDwWQKHnVLH6DEuvuUyqaRuJ7jvOsA=";
|
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 \
|
2022-04-27 09:35:20 +00:00
|
|
|
"#include \"ascii/gnu.h\"" "#include \"ascii/nixos.h\""
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
sed '1i#include <array>' -i config.h # gcc12
|
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; {
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/kira64xyz/yafetch";
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Yet another fetch clone written in C++";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ ivar ashley ];
|
2021-05-20 23:08:51 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "yafetch";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|