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
805 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2021-05-13 15:50:34 +01:00
stdenv.mkDerivation rec {
pname = "yafetch";
version = "unstable-2022-04-20";
2021-05-13 15:50:34 +01:00
src = fetchFromGitHub {
owner = "kira64xyz";
2021-05-13 15:50:34 +01:00
repo = pname;
rev = "a118cfc13f0b475db7c266105c10138d838788b8";
sha256 = "bSJlerfbJG6h5dDwWQKHnVLH6DEuvuUyqaRuJ7jvOsA=";
2021-05-13 15:50:34 +01:00
};
# Use the provided NixOS logo automatically
prePatch = ''
substituteInPlace ./config.h --replace \
"#include \"ascii/gnu.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://github.com/kira64xyz/yafetch";
2021-05-13 15:50:34 +01:00
description = "Yet another fetch clone written in C++";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ivar ashley ];
2021-05-13 15:50:34 +01:00
platforms = platforms.linux;
};
}