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

31 lines
802 B
Nix
Raw Normal View History

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