40 lines
984 B
Nix
40 lines
984 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "nerdfetch";
|
|
version = "8.5.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ThatOneCalculator";
|
|
repo = "NerdFetch";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-LSp5UNXp4WBDk2MIb4UBxifTTYI36SpRU7BHL38p8VQ=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp $src/nerdfetch $out/bin
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = {
|
|
description = "POSIX *nix (Linux, macOS, Android, *BSD, etc) fetch script using Nerdfonts";
|
|
homepage = "https://github.com/ThatOneCalculator/NerdFetch";
|
|
changelog = "https://github.com/ThatOneCalculator/NerdFetch/releases/tag/${finalAttrs.src.tag}";
|
|
maintainers = with lib.maintainers; [ ByteSudoer ];
|
|
license = lib.licenses.mit;
|
|
mainProgram = "nerdfetch";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|