Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 bash, 6 scdoc, 7}: 8 9stdenvNoCC.mkDerivation { 10 pname = "fetchutils"; 11 version = "unstable-2021-03-16"; 12 13 src = fetchFromGitHub { 14 owner = "kiedtl"; 15 repo = "fetchutils"; 16 rev = "882781a297e86f4ad4eaf143e0777fb3e7c69526"; 17 sha256 = "sha256-ONrVZC6GBV5v3TeBekW9ybZjDHF3FNyXw1rYknqKRbk="; 18 }; 19 20 nativeBuildInputs = [ 21 scdoc 22 ]; 23 24 buildInputs = [ 25 bash 26 ]; 27 28 installFlags = [ "PREFIX=$(out)/" ]; 29 30 postPatch = '' 31 patchShebangs --host src/* 32 ''; 33 34 meta = with lib; { 35 description = "Collection of small shell utilities to fetch system information"; 36 homepage = "https://github.com/lptstr/fetchutils"; 37 license = licenses.mit; 38 platforms = platforms.unix; 39 maintainers = with maintainers; [ moni ]; 40 }; 41}