5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
37 lines
874 B
Nix
37 lines
874 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "nerdfetch";
|
|
version = "8.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ThatOneCalculator";
|
|
repo = "NerdFetch";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-fSITel2WhlmKx+wMNKfur3zDqKYJs5+AZNJBd2MtGRw=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp $src/nerdfetch $out/bin
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = with lib;{
|
|
description = "POSIX *nix (Linux, macOS, Android, *BSD, etc) fetch script using Nerdfonts";
|
|
homepage = "https://github.com/ThatOneCalculator/NerdFetch";
|
|
maintainers = with maintainers; [ ByteSudoer ];
|
|
license = licenses.mit;
|
|
mainProgram = "nerdfetch";
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|