nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 984 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 gitUpdater, 6}: 7stdenvNoCC.mkDerivation (finalAttrs: { 8 pname = "nerdfetch"; 9 version = "8.4.2"; 10 11 src = fetchFromGitHub { 12 owner = "ThatOneCalculator"; 13 repo = "NerdFetch"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-G1BWggVPxpIKK82pKHD4Jxyis4CY156Jox2/xHRQfrI="; 16 }; 17 18 dontUnpack = true; 19 dontConfigure = true; 20 dontBuild = true; 21 installPhase = '' 22 mkdir -p $out/bin 23 cp $src/nerdfetch $out/bin 24 ''; 25 26 passthru.updateScript = gitUpdater { 27 rev-prefix = "v"; 28 }; 29 30 meta = { 31 description = "POSIX *nix (Linux, macOS, Android, *BSD, etc) fetch script using Nerdfonts"; 32 homepage = "https://github.com/ThatOneCalculator/NerdFetch"; 33 changelog = "https://github.com/ThatOneCalculator/NerdFetch/releases/tag/${finalAttrs.version}"; 34 maintainers = with lib.maintainers; [ ByteSudoer ]; 35 license = lib.licenses.mit; 36 mainProgram = "nerdfetch"; 37 platforms = lib.platforms.unix; 38 }; 39})