Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchgit, 5}: 6 7stdenv.mkDerivation rec { 8 name = "ramfetch"; 9 version = "1.1.0a"; 10 11 src = fetchgit { 12 url = "https://codeberg.org/jahway603/ramfetch.git"; 13 rev = version; 14 hash = "sha256-sUreZ6zm+a1N77OZszjnpS4mmo5wL1dhNGVldJCGoag="; 15 }; 16 17 dontBuild = true; 18 19 installPhase = '' 20 runHook preInstall 21 22 install -D ramfetch $out/bin/ramfetch 23 24 runHook postInstall 25 ''; 26 27 meta = { 28 description = "Tool which displays memory information"; 29 homepage = "https://codeberg.org/jahway603/ramfetch"; 30 platforms = lib.platforms.linux; 31 license = lib.licenses.mit; 32 maintainers = [ lib.maintainers.markbeep ]; 33 mainProgram = "ramfetch"; 34 }; 35}