Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 881 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 gitUpdater, 6}: 7stdenvNoCC.mkDerivation (finalAttrs: { 8 pname = "nerdfetch"; 9 version = "8.4.0"; 10 11 src = fetchFromGitHub { 12 owner = "ThatOneCalculator"; 13 repo = "NerdFetch"; 14 rev = "v${finalAttrs.version}"; 15 hash = "sha256-KMu/cMjRFEyfRxoKDGn4PfubGCrotVsKQ9wwc1wQaVM="; 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 = with lib; { 31 description = "POSIX *nix (Linux, macOS, Android, *BSD, etc) fetch script using Nerdfonts"; 32 homepage = "https://github.com/ThatOneCalculator/NerdFetch"; 33 maintainers = with maintainers; [ ByteSudoer ]; 34 license = licenses.mit; 35 mainProgram = "nerdfetch"; 36 platforms = platforms.unix; 37 }; 38})