Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 bash, 6}: 7 8stdenvNoCC.mkDerivation { 9 pname = "bfetch"; 10 version = "unstable-2021-05-21"; 11 12 src = fetchFromGitHub { 13 owner = "NNBnh"; 14 repo = "bfetch"; 15 rev = "ef88e9d3f815e5074efc8ef4b7f32be6818130f2"; 16 sha256 = "sha256-jS9zI8b+z3KbI+LeHFwIMJfEmAKSzO8HRZ2rk35hJCk="; 17 }; 18 19 buildInputs = [ bash ]; 20 21 postPatch = '' 22 patchShebangs --host bin/bfetch 23 ''; 24 25 makeFlags = [ "PREFIX=$(out)" ]; 26 27 meta = with lib; { 28 description = "SuperB general-purpose fetch displayer written in portable sh"; 29 homepage = "https://github.com/NNBnh/bfetch"; 30 license = licenses.gpl3Only; 31 platforms = platforms.all; 32 maintainers = with maintainers; [ moni ]; 33 mainProgram = "bfetch"; 34 }; 35}