nixpkgs/pkgs/tools/misc/yafetch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
884 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2021-05-13 14:50:34 +00:00
stdenv.mkDerivation rec {
pname = "yafetch";
version = "unstable-2022-04-20";
2021-05-13 14:50:34 +00:00
src = fetchFromGitHub {
owner = "kira64xyz";
2021-05-13 14:50:34 +00:00
repo = pname;
rev = "a118cfc13f0b475db7c266105c10138d838788b8";
sha256 = "bSJlerfbJG6h5dDwWQKHnVLH6DEuvuUyqaRuJ7jvOsA=";
2021-05-13 14:50:34 +00:00
};
# Use the provided NixOS logo automatically
prePatch = ''
substituteInPlace ./config.h --replace \
"#include \"ascii/gnu.h\"" "#include \"ascii/nixos.h\""
sed '1i#include <array>' -i config.h # gcc12
2021-05-13 14:50:34 +00:00
'';
# Fixes installation path
PREFIX = placeholder "out";
2021-05-13 14:50:34 +00:00
meta = with lib; {
homepage = "https://github.com/kira64xyz/yafetch";
2021-05-13 14:50:34 +00:00
description = "Yet another fetch clone written in C++";
license = licenses.gpl3Plus;
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
};
}