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

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

31 lines
815 B
Nix
Raw Normal View History

2021-05-13 16:50:34 +02:00
{ lib, stdenv, fetchFromGitLab }:
stdenv.mkDerivation rec {
pname = "yafetch";
version = "unstable-2021-07-18";
2021-05-13 16:50:34 +02:00
src = fetchFromGitLab {
owner = "cyberkitty";
repo = pname;
rev = "f3efbca54df1ffea22cc40034114af141ccff9c1";
sha256 = "1cxhrjy9vzq87rzql4dcknkwca7nydysp1p1x4fh1qfw79dfdmxw";
2021-05-13 16:50:34 +02:00
};
# Use the provided NixOS logo automatically
prePatch = ''
substituteInPlace ./config.h --replace \
"#include \"ascii/tux.h\"" "#include \"ascii/nixos.h\""
2021-05-13 16:50:34 +02:00
'';
# Fixes installation path
PREFIX = placeholder "out";
2021-05-13 16:50:34 +02:00
meta = with lib; {
homepage = "https://gitlab.com/cyberkitty/yafetch";
description = "Yet another fetch clone written in C++";
license = licenses.gpl2Only;
maintainers = with maintainers; [ ivar ashley ];
2021-05-13 16:50:34 +02:00
platforms = platforms.linux;
};
}